Forum Replies Created

Viewing 15 posts - 1,276 through 1,290 (of 3,348 total)

  • RE: Composite foreign key

    The question is okay (though I was hoping everyone would know that - not every table needs an IDENTITY primary key, you know?)

    I don't understand the discussion on preventing truncate...

  • RE: Restore

    Koen Verbeeck (9/30/2015)


    Seems like a certification question 😀

    Didn't know you could switch order, so I learned something.

    You can't switch order. All the correct options restore the backups in proper sequence.

    In...

  • RE: Restore

    helenlu7 65408 (9/30/2015)


    Theoretically you can use all the log backs after the full backup. But use Diff backup is far more efficient than using a series of log backups.

    After...

  • RE: Restore

    None of these answers are fully correct. To ensure minimal data loss, one should always start by a tail-log backup. (Which will fail if the log file is unavailable, but...

  • RE: CXPACKET

    Iwas Bornready (9/22/2015)


    porter.james (9/21/2015)


    It does make slow queries hard to troubleshoot though, since it obscures the actual cause of query running slow... so for troubleshooting I'd consider temporarily setting MAXDOP...

  • RE: CXPACKET

    Almost entirely correct.

    The actual correct answer is that a CXPACKET wait indicates that one thread in a parallel plan has to wait for others as part of the synchronization.

    Whenever a...

  • RE: Round

    bmm7749-sqlservercentral (9/15/2015)


    Interestingly enough, select round(0.99+0.009,2) also works

    That is because of the rules for inferring data types after addition. Those rules DO take into account that the most significant digit can...

  • RE: Missing Indexes

    Jacob Wilkins (9/11/2015)


    Hugo Kornelis (9/11/2015)


    Jacob Wilkins (9/10/2015)


    Well, I tested it multiple times in 2008 R2 and that was the behavior I saw. Perhaps that behavior is different than in...

  • RE: Missing Indexes

    Jacob Wilkins (9/10/2015)


    Well, I tested it multiple times in 2008 R2 and that was the behavior I saw. Perhaps that behavior is different than in other versions, but at...

  • RE: Missing Indexes

    Jacob Wilkins (9/10/2015)


    Ken Wymore (9/10/2015)


    Interesting question. I was sure it would give an error.

    Queries that already have a plan cached that uses the nonclustered index will throw an error.

    The...

  • RE: Missing Indexes

    Luis Cazares (9/10/2015)


    Is there any difference when using clustered indexes instead of heaps?

    Both a heap and a clustered index hold all the data.

    A heap in unorganized. There are just two...

  • RE: Counting Rows

    If your response to my argument is to call me numerically illiterate, then we are done.

    Please accept my apologies for wasting your and my time.

  • RE: Counting Rows

    TomThomson (8/31/2015)


    Hugo Kornelis (8/31/2015)


    TomThomson (8/30/2015)


    A nice easy question to start the week.

    And it shows that T-SQL doesn't always get aggregates on empty sets completely wrong.

    "Not always"???

    Can you give me an...

  • RE: Counting Rows

    TomThomson (8/30/2015)


    A nice easy question to start the week.

    And it shows that T-SQL doesn't always get aggregates on empty sets completely wrong.

    "Not always"???

    Can you give me an example of where...

  • RE: What are your five most common T-SQL commands

    Jeff Moden (8/27/2015)


    Favorite name for a Temp Table when troubleshooting something that should never have made it to production...

    [font="Arial Black"]#MyHead[/font]

    When I want to make sure that my query tuning measurements...

Viewing 15 posts - 1,276 through 1,290 (of 3,348 total)