Forum Replies Created

Viewing 15 posts - 571 through 585 (of 716 total)

  • RE: Order By Column

    Interesting QotD.

  • RE: Order By Column

    Koen Verbeeck (3/4/2014)


    Nice question, but the explanation doesn't mention why the order of casting vs order by changes. (because of adding the T alias in the second statement)

    + 1

  • RE: DSQ

    I guessed the correct answer from the beginning; but still needed to make sure, so had to so some R&D.

  • RE: EXCEPT 2

    I guess there is something wrong with this question as it should be like follows:

    SELECT X AS 'Except'

    FROM A

    EXCEPT

    SELECT Y

    FROM B

    but maybe...

  • RE: Intersecting - 1

    paul.knibbs (2/26/2014)


    I had to go and run this one because I couldn't believe the answer was as simple as it first appeared. Lo and behold, it *was* that simple! :laugh:

    I...

  • RE: Intersecting - 1

    Carlo Romagnano (2/26/2014)


    First time I see 99% OK.

    😀

    Now it`s 95% still one of the easiest QotD ever.

  • RE: Stored Procedure Boundaries

    milos.radivojevic (2/26/2014)


    dj341 (2/26/2014)


    robert.diley (2/26/2014)


    How odd. I actually tried running this (copy/pasted the code) and got the following:

    (1 row(s) affected)

    Msg 8134, Level 16, State 1, Procedure TestProc, Line 6

    Divide by zero...

  • RE: Stored Procedure Boundaries

    Too easy, amazing 38% wrong answers 😎

  • RE: Startup In Single-User Mode

    That was easy 4 me; as I had to use it before.

  • RE: In Database We Trust

    SQLRNNR (2/20/2014)

    Well, I am dealing with a vendor that has a table named [NULL], numerous columns named [NULL], and I was completely surprised they didn't just name the database [NULL].

    😀

  • RE: In Database We Trust

    SQLRNNR (2/19/2014)


    Definitely an interesting question.

    It makes you think about the difference between a reserved keyword and just a keyword.

    + 1

  • RE: Backup/Restore

    Igor Micev (2/21/2014)


    The question is trivial.

    To ensure myself, I read this reference http://technet.microsoft.com/en-us/library/ms186388.aspx and I didn't see any correlation of the model's read_only property to the same for the restoring...

  • RE: IDENTITY

    Igor Micev (2/19/2014)


    SQLRNNR (2/19/2014)


    Nice question. I wonder how many people have used identity in this way (select into...).

    It's used in migrations. For example if you have to migrate users...

  • RE: IDENTITY

    Very good, and informative this one, thanks Igor.

  • RE: The Model Database

    Just a simple & basic info to share: "if you changed the model database to Read-Only mode; then any newly created database will be in Read-Only mode by default".

Viewing 15 posts - 571 through 585 (of 716 total)