Forum Replies Created

Viewing 15 posts - 2,866 through 2,880 (of 3,348 total)

  • RE: Views

    Kenneth Wymore (4/21/2010)


    Does anyone have a link to a view that uses a CTE in its definition?

    Go to the page referenced in the explanation of the question; scroll all the...

  • RE: Using IDENTITY as a key column

    Glenn Dorling (4/20/2010)


    Sorry Hugo, but I have to add my voice to the nay-sayers.

    For the first part of the question your answer is based on the fact that by default...

  • RE: Views

    Good, clean question, Ron. Nice work!

    abrar.ahmad-1058946 (4/21/2010)


    I conceived your quest statement as 'The Single Defining Select Statement of View Definition' as shown in code segment 1 above.

    The question explicitly states:...

  • RE: Using IDENTITY as a key column

    I see a lot of new comments have been posted while I was away. Thanks all for the feedback! I think that there's too many of them to address every...

  • RE: Using IDENTITY as a key column

    Tom Brown (4/20/2010)


    A Good question. I learned something from this.

    I've used IDENTITY for ages, assuming its both duplicate-proof and automatically indexed.

    I'm glad to have this pointed...

  • RE: Using IDENTITY as a key column

    Paul White NZ (4/20/2010)


    Including the trivial case where the table has one row, if the rows in the table fit on a single page, SQL Server has a perfectly 'efficient'...

  • RE: Using IDENTITY as a key column

    Thanks for the feedback, to all involved in this discussion so far.

    I appreciate all the kind words and compliments. And I'l try to address the questions and criticism in the...

  • RE: What is the value of SCOPE_IDENTITY()

    nigel. (4/19/2010)


    Hugo,

    Thanks for the input.

    Which would you say is correct, the implementation as it stands or BOL?

    Hi Nigel,

    Tough question. We can't really look in the minds of the developers...

  • RE: What is the value of SCOPE_IDENTITY()

    nigel. (4/19/2010)


    This is how I interpret the docs:

    SCOPE_IDENTITY will return the identity value from the most recent insert in the current scope. If the most recent insert was to a...

  • RE: What is the value of SCOPE_IDENTITY()

    Andrew Watson-478275 (4/19/2010)


    A more interesting result is from this:

    DECLARE @sid int

    DECLARE @table Table (KeyID int primary key,KeyData varchar(5))

    DECLARE @idtable Table (KeyID int identity primary key,KeyData varchar(5))

    INSERT INTO @idtable (KeyData) VALUES('Test1')

    INSERT...

  • RE: Statistics

    Tom.Thomson (4/17/2010)


    A question: is the stats_column_id column of sys_stats the same column_id as the column_id in sys.columns? If so, why does it have a different name?

    Hi Tom,

    I assume you...

  • RE: Statistics

    Nice question, Ron. I do not agree with Jason about the importance of the information though - it is interesting to know, but absolutely irrelevant for our jobs. 😉

    I do...

  • RE: NULL

    alexkedrov (4/15/2010)


    john.arnott (4/15/2010)


    steve block (4/15/2010)


    I think it would have been delicious to have one of the options for the answer to be "I Don't Know" and it be the correct...

  • RE: NULL

    mtillman-921105 (4/13/2010)


    Hugo Kornelis (4/13/2010)


    mtillman-921105 (4/13/2010)


    But I still wish that SQL would use it as a zero since in the real world when we add 5 + NULL we want to...

  • RE: NULL

    mtillman-921105 (4/13/2010)


    But I still wish that SQL would use it as a zero since in the real world when we add 5 + NULL we want to see 5, not...

Viewing 15 posts - 2,866 through 2,880 (of 3,348 total)