Forum Replies Created

Viewing 15 posts - 1,681 through 1,695 (of 3,348 total)

  • RE: Temp Tables revisited

    sharath.chalamgari (6/24/2013)


    what could be the better approach in this kind of situation , is there any better option than this

    Rethink your design.

    Seriously. SQL is not designed for tables that can...

  • RE: Temp Tables revisited

    Good question, and mostly correct explanation. Except for the last sentence.

    Such an error breaks the integrity of the code and makes further evaluation impossible. Parsing stops immediately at this point...

  • RE: SQL CHOOSE

    David Conn (6/22/2013)


    One of the Posts suggested that SQL Server 2008 R2 was the Default is interesting as I haven't seen this mentioned before.

    I think I know where this come...

  • RE: Date add with Different DataType

    Toreador (6/21/2013)


    Hugo Kornelis (6/21/2013)The only reason that this ends up returning the next day is because of how datetime is internally implemented.

    I thought that the main reason it returns the...

  • RE: Date add with Different DataType

    Though adding an integer to a datetime works (and is even documented HERE and HERE), I would strongly recommend against using it.

    First, let's look at the internals. Operators work with...

  • RE: Lock Escalation Limit

    Lokesh Vij (6/20/2013)


    Rich Weissler (6/20/2013)


    My memory was that Lock Escalation from row or page level always jumps to table. I assume I'm simply misinterpreting the question, but figured I'd...

  • RE: Lock Escalation Limit

    martin.whitton (6/20/2013)


    Curiously, I can't find any explicit reference that states this threshold for SQL Server 2012.

    If you follow the link in the explanation, you'll see (right at the top) the...

  • RE: IFF - 1

    L' Eomot Inversé (6/19/2013)


    After all, case-sensitive collations are an absolute pain for almost all purposes, so it might be a good idea to get people whose servers are set up...

  • RE: SQL CHOOSE

    I have to disagree with most of the comments posted so far. I do NOT think that this is a good question at all.

    First, the date format. I totally disagree...

  • RE: IFF - 1

    sqlnaive (6/19/2013)


    In a normal scenario it should be considered as the default behaviour for the question which is CI (and not CS).

    I disagree, and I'll tell you why.

    In questions where...

  • RE: ALL clause in SQL Server

    sknox (6/18/2013)


    sknox (6/18/2013)


    Hugo Kornelis (6/18/2013)


    To my surprise, ANY and ALL are not defined as each others boolean negation. But their two definitions do appear to be completely opposites. So unless...

  • RE: ALL clause in SQL Server

    Toreador (6/18/2013)


    So "<> ALL" is equivalent to "NOT IN" ?

    I checked the ANSI standard. It defines x NOT IN (y) as equivalent to NOT (x IN (y)), and x IN...

  • RE: ALL clause in SQL Server

    Toreador (6/18/2013)


    I got this wrong, but having read the explanation I'm still none the wiser...

    To understand the mechanics, start with the subquery:

    SELECT Departmentid

    FROM Emptable AS Emptable_1

    WHERE (Empid < 5)

    This...

  • RE: Indexing

    Steve Jones - SSC Editor (6/14/2013)


    Luis Cazares (6/14/2013)


    The question is interesting but I do wonder why would someone would disable a clustered index?

    ETL loads is one reason. It can be...

  • RE: SHOWPLAN_XML

    crussell-931424 (6/13/2013)


    Hugo Kornelis (6/13/2013)


    crussell-931424 (6/13/2013)


    By the way, I added a literal just before the * and got that literal back, so it does execute some data, even if it doesn't...

Viewing 15 posts - 1,681 through 1,695 (of 3,348 total)