Forum Replies Created

Viewing 15 posts - 601 through 615 (of 656 total)

  • RE: ANSI_NULLS

    Is there any situation where setting ansi_nulls off is a good idea?

  • RE: How many rows are returned from the query below?

    bitbucket-25253 (3/5/2010)


    kaspencer (3/5/2010)

    then one must be careful to ensure that the questions are properly phrased, in correct English

    May I point out that the SSC community includes members from countries world...

  • RE: How many rows are returned from the query below?

    CirquedeSQLeil (3/4/2010)


    The hippo is asleep btw.

    I think it's sleeping on top of the duck 🙁

  • RE: How many rows are returned from the query below?

    garret06 (3/3/2010)


    Ok, I got it wrong. But, what color is the duck?

    Seriously, I need to know.

    o_0

    I'm not sure. But I do know that one of its legs is...

  • RE: How many rows are returned from the query below?

    Lynn Pettis (3/3/2010)


    Second, it doesn't matter how many rows are in the table tblUsers (unless it only contained one row, but everyone so far has assumed more than one), this...

  • RE: How many rows are returned from the query below?

    Aam-624390 (3/3/2010)


    Seems to be a lot missing assumptions.

    Well it seems a reasonable assumption that tblUsers exists, and is a table.

    You then have to guess about data volumes -...

  • RE: FOR XML PATH

    GlenParker (2/19/2010)


    Not sure if it was a browser issue but couldn't copy the script to paste into Query Analyser, anyone else have that problem?

    It's an image rather than text, presumably...

  • RE: Bit by bit

    Marry Krissmess (2/5/2010)


    In programming languages this may be treated as boolean but here it should be a numeric range and any thing else than 0 or 1 should throw an...

  • RE: Query cost

    Jamie Longstreet-481950 (2/6/2010)


    it makes far more sense (to me) that an "exists" functionality will provide a faster and more efficient query than one searching the index for a value (IN...

  • RE: Multi-statement execution

    Interesting question, thanks 🙂

    I got it right, but largely down to guesswork - my initial thought was 0, but the name of the temp table "#funny_test" made me expected something,...

  • RE: Bit by bit

    Bob Cullen-434885 (1/28/2010)


    Ah! So a BOOLEAN type, then. That's different, and if so should also require that the language provides proper TRUE and FALSE keywords, rather than hijacking numeric values...

  • RE: Bit by bit

    Here's a slightly better reference

    http://msdn.microsoft.com/en-us/library/ms191530(SQL.90).aspx#_bit

    "Converting to bit promotes any nonzero value to 1"

  • RE: Bit by bit

    "if a number larger than one is used, it is converted to one."

    I thought the actual explanation was that anything other than 0 (false) is treated as true and hence...

  • RE: Query cost

    Hugo Kornelis (1/27/2010)


    the strangely popular but really rather odd EXISTS 1 instead of EXISTS * (EXISTS checks for rows, not values, so what you put there is immaterial - except...

  • RE: Query cost

    I recently optimised a query and tried exactly these two constructs. The query plan for both was identical.

    So the correct answer is either "they are equal", or (more likely I...

Viewing 15 posts - 601 through 615 (of 656 total)