Forum Replies Created

Viewing 15 posts - 3,946 through 3,960 (of 7,484 total)

  • RE: Lots of Key Lookups vs. UniqueIdentifier Clustered Index

    Jeff Moden (11/17/2012)


    You might be able to fix this. I haven't tested it but it might work.

    Make the clustered index on the IDENTITY and the GUID column and then...

  • RE: Today's Random Word!

    Daniel Bowlin (11/16/2012)


    Stuart Davies (11/15/2012)


    nostalgia!

    Deja vu

    DjVu

  • RE: Nanoseconds

    seankyleprice (11/16/2012)


    I personally think the answer should be 'none of the above'. The accuracy of sysdatetime() depends on the computer hardware and version of Windows on which the instance of...

  • RE: Usage of @@ERROR in Transaction

    seankyleprice (11/16/2012)


    Best Practice for 2008 onwards is surely to use TRY CATCH as suggested by Stewart. For 2005 and prior I agree that the method suggested by Carlos would be...

  • RE: Usage of @@ERROR in Transaction

    Carlo Romagnano (11/16/2012)


    Best practise: save @@error and @@rowcount to test them later

    declare @err int

    ,@rows int

    select 1

    SELECT @err = @@error, @rows = @@rowcount

    if @err <> 0 or @rows = 0

    ...

  • RE: Defaults

    Good basics question, nice and easy.

    Interesting discussion on the deprecation of 'DEFAULT' used as a default value; I can't imagine a more lunatic restriction myself, and I see Hugo's amusing...

  • RE: Today's Random Word!

    OCTom (11/14/2012)


    Ray K (11/14/2012)


    Asterix

    "I have but one Asterix for my country."

    John Psul Jones

    By "my country" did he mean Scotland, the United States, or Russia?

    WotD: Trinationality

  • RE: Are the posted questions getting worse?

    venoym (11/14/2012)


    OCTom (11/14/2012)


    Stefan Krzywicki (11/14/2012)


    QA? What's that? 😛

    Isn't QA the step that immediately follows implementation?;-)

    Wait... after Implementation? I thought it was the Step just after "Deployment" and just...

  • RE: T-SQL Powers

    This is an easy question for those not fooled by the title who either remember that in SQL the power operator (POWER) is written as a function (not as an...

  • RE: Transactions in T-SQL

    Good question.

    I got it wrong through sheer carelessness - read too quickly, and failed to remember when I got to the end that the very first insert is before the...

  • RE: Lead - 2

    mbova407 (11/12/2012)


    Thanks for the question

    Will someone please explain example C in english

    CREATE TABLE T (a int, b int, c int);

    GO

    INSERT INTO T VALUES (1, 1, -3), (2, 2, 4),...

  • RE: Lead - 2

    Nice question, and easy.

    But I suspect a sales manager who noticed that goals were being set like that would not be happy - fancy giving the salesman who made the...

  • RE: Halloween Protection

    Craig, it's clear that we each have our own viewpoint on what a spool operation is and whether all operations carried out by SQL server show up in query plans,...

  • RE: COALESCE - 2

    sknox (11/10/2012)


    If you think of it that way, you'll see why a NULL in a column or variable can (must) have a type associated with it, while a NULL constant...

  • RE: Today's Random Word!

    capnhector (11/9/2012)


    Revenant (11/9/2012)


    Wizards

    Gandalf

    Rod d'Armand

Viewing 15 posts - 3,946 through 3,960 (of 7,484 total)