Forum Replies Created

Viewing 15 posts - 496 through 510 (of 1,479 total)

  • RE: Incorrect syntax

    You don’t need to give name for the join of the derived table. Bellow you can see a version that gets compiled. I think that you should...

  • RE: Query or View

    From security point of view if you use a query that references the table, the user must have permissions directly on the tables, but if you use a view and...

  • RE: UNION Causing Sorting - Query Optimization

    There is a good chance that I’m missing something here, but if you want to get rid of the sort, why did you add a sort clause to your query?

    Adi

  • RE: IS PROBLEM WITH SEVER LEVEL SETIING

    I don’t know why on one server you have an error and on other server you don’t. Maybe you have different service packs on both servers. In any...

  • RE: IS PROBLEM WITH SEVER LEVEL SETIING

    I couldn’t find an error like that in SQL Server 2005. Are you sure that you are using SQL Server 2005 and not a different edition (for example sql...

  • RE: generating or populating time dimensions

    Here is one way of doing it. Maybe there is also a nice way of doing it using recursive CTE:-)

    create table TimeTable (dt datetime)

    insert into TimeTable (dt) values ('20000101')

    declare...

  • RE: Problem with cyrillic characters in column caption

    In Asp.net Cyrillic is one of the languages that require database collation and application layer text encoding to avoid character conversion issues. So the user needs to either use...

  • RE: using XML method

    Also this

    select tbl.col.value(('.[1]'),'varchar(10)')

    from @xml.nodes('/Root/SubNode/*') tbl (col)

    Very nice. Learned something new today:-)

    Adi

  • RE: Problem with cyrillic characters in column caption

    I have to admit that I have no idea why it works for you on one procedure and it doesn’t work on a second procedure, but I think that in...

  • RE: using XML method

    Since you use different tags, I think that you can do it only with union all query. If you can modify the XML so the tag’s name will be...

  • RE: Stored procedure encryption / decryption

    In the past I needed to decrypt procedures that were written with SQL Server 2000 and SQL Server 2005. I had to invest few minutes to look for a...

  • RE: Fun(?) with DATETIME2

    I selected the first option (“It runs perfectly as you would expect”). The correct answer was – “It runs perfectly but you would expect it to fail”. Apparently...

  • RE: Simple question regarding locks

    According to BOL a lock takes approximately 100 bytes of memory, so I guess that you can check who much locks were used and get estimation about the memory usage....

  • RE: how to add data into these two tables

    You’ll have to disable one of the constraints in order to insert the first record (alter it using the NOCHECK key word). After you’ll insert the matching record into...

  • RE: Database Lockup

    Are you sure that it caused deadlock? Could it be that it causes massive blocking but not deadlock? Can you let us know how you came into conclusion...

Viewing 15 posts - 496 through 510 (of 1,479 total)