Forum Replies Created

Viewing 15 posts - 691 through 705 (of 825 total)

  • RE: LIKE and = Operators

    Nils Gustav Stråbø

    Now, I understand because

    set ansi_padding off is deprecated, it's buggy.

  • RE: LIKE and = Operators

    Nils Gustav Stråbø (12/6/2010)


    Good question, thanks!

    Is it just me, or is there a bug in SQL Server when ANSI_PADDING is OFF (not that I've ever used it)?

    Let me demonstrate, and...

  • RE: LIKE and = Operators

    dawryn (12/6/2010)


    How can result have more rows than number of inserted rows :blush:

    The INSERT SCRIPT should be executed twice: one with ANSI_PADDING option set to ON and another one to...

  • RE: LIKE and = Operators

    Thank you! Finally a very good question.

  • RE: Unique constraint on a nullable column

    The only worth of the question is the good news:

    "filtered index" (SQL Server 2008).

    This feature is present in MS-ACCESS starting from version 1.0 (year 1990).

  • RE: Unique constraint on a nullable column

    INSERT ... WHERE ...

    ... and UPDATE ????

    I could insert NULL and then change (UPDATE) it to an existing value!

    The solution is insert/update by stored proc, but the risk to miss...

  • RE: Unique constraint on a nullable column

    tommyh (12/2/2010)


    There is no **** way that "By adding a where clause in ALL inserts that checks for the existence of new value in the table" is a fix to...

  • RE: sys.syscomments

    I disagree: the query returns all rows that contains the word 'order' in the column [text] that may appear in comments or definition.

  • RE: temp table in sysobjects

    Carlo Romagnano (11/22/2010)


    WayneS (11/22/2010)


    BTW, the best way to check for the existance of a temporary table in your current session is:

    IF OBJECT_ID('tempdb..#YourTempTable') IS NOT NULL

    Note that in SQL Server thru...

  • RE: temp table in sysobjects

    WayneS (11/22/2010)


    BTW, the best way to check for the existance of a temporary table in your current session is:

    IF OBJECT_ID('tempdb..#YourTempTable') IS NOT NULL

    Note that in SQL Server thru version 2008R2,...

  • RE: temp table in sysobjects

    vk-kirov

    That's true!

    I ran it on sql2000 sp4.

  • RE: temp table in sysobjects

    vk-kirov (11/22/2010)


    Carlo Romagnano (11/22/2010)


    Also this is wrong:

    If you used a query like this, you would see your table:

    You will see ALL tables that begins with '#testvm', also, tables belonging...

  • RE: temp table in sysobjects

    Also this is wrong:

    If you used a query like this, you would see your table:

    You will see ALL tables that begins with '#testvm', also, tables belonging to other sessions.

  • RE: Conditional Order By

    Hugo Kornelis (11/17/2010)Without the reversal, the question would have been a solid test of whether people know about the dangers of using CASE in ORDER BY, and thus an excellent...

  • RE: Conditional Order By

    mister.magoo (11/16/2010)


    Thanks to those of you who appreciate this question.

    To those who think it had unnecessary "tricks" in it, I did try several variants of this question and they all...

Viewing 15 posts - 691 through 705 (of 825 total)