Forum Replies Created

Viewing 15 posts - 16 through 30 (of 219 total)

  • RE: Duplicate Foreign Key

    call.copse (10/23/2012)


    I liked this question, as I wondered whether anyone would try running the sample code, and what would happen if they did (and I got it right comfortably!). Would...

  • RE: Tablesample

    SQL Kiwi (9/21/2012)


    Goodness knows myths around implied ordering are prevalent enough without questions like this reinforcing those misconceptions.

    I've just run the 'sp_who2 active' command on one of our servers. This...

  • RE: Tracking Processes

    rVadim (9/20/2012)


    I thought DiskIO in sp_Who2 means reads and writes combined, not just reads as question asks. Am I wrong?

    You are absolutely right. Running 'sp_helptext sp_who2', we can see the...

  • RE: Tablesample

    (Bob Brown) (9/19/2012)


    Executed the select many times and never got a return. Oh well.

    Try the following script, I'm sure you'll get some (approx. 10-15) non-empty results:

    set nocount...

  • RE: CS Collation

    Raghavendra Mudugal (9/12/2012)


    vk-kirov (9/12/2012)


    I don't understand why peppers are in the end of the list. Shouldn't they be between pepper and Pepper? πŸ™‚

    Because here the "peppers" is plural. Of-course the...

  • RE: CS Collation

    I don't understand why peppers are in the end of the list. Shouldn't they be between pepper and Pepper? πŸ™‚

  • RE: APPLY - 1

    Olga B (9/6/2012)


    Would you mind sharing what problem you had that was solved by CROSS APPLY? I haven't had a chance to use it, either, and I'm wondering what some...

  • RE: How to save results of a procedure with more than one result set

    For each table name: if we already have such a table in the database, drop it ...

    ... and say goodbye to a concurrent process (if any) πŸ™‚

    Not so good, I...

  • RE: Commenting in Dynamic query

    I got a point for choosing the "correct" answer because I hadn't counted characters in the dynamic queries. Now I want an extra point for that reason. This is why...

  • RE: Index Types

    L' Eomot InversΓ© (7/25/2012)


    I guess 23% of people were sufficiently observant to notice the check boxes, since that many got it right.

    Maybe 12%, not 23?

    I guess this is just the...

  • RE: Full Backups

    WayneS (7/19/2012)


    see http://technet.microsoft.com/en-us/magazine/2009.02.logging.aspx for more about the UNDO portion of recovery

    And see another brilliant Paul Randal's article for the detailed explanation about the subject of the QotD: Understanding SQL Server...

  • RE: Snapshots

    Weird logic. I don't understand how the answer could be "No", while in fact the database can be restored from any of the snapshots (although not with a single RESTORE...

  • RE: Restart Log Backups

    Happy to be enlightened about that myth. It definitely worth two points.

  • RE: Index defaults 2

    Koen Verbeeck (6/27/2012)


    I doubt a 1-1 foreign key relationship is very useful πŸ˜€

    At current job I deal with some billing software. There's a table of payments containing such rows as...

  • RE: Index defaults 2

    I can create an index by means of a unique constraint:

    CREATE TABLE dbo.QotD

    (KeyColumn int NOT NULL PRIMARY KEY,

    RefColumn int NOT NULL,

    -- More...

Viewing 15 posts - 16 through 30 (of 219 total)