Forum Replies Created

Viewing 15 posts - 616 through 630 (of 656 total)

  • RE: Question of the Day for 21 Dec 2009

    "Due to the Holiday Season, and Frosty being a part of the season, an easy question was in order. "

    It might be easy if you're American. Who's Frosty the Snowman?!?

    :unsure:

  • RE: Temp Tables

    Steve Jones - Editor (12/17/2009)


    wow, you guys are really splitting hairs. A restart includes a shutdown and startup of the database instance. How could you argue it includes anything else?...

  • RE: Temp Tables

    BOL says "a global temporary table is dropped at the completion of the last Transact-SQL statement that was actively referencing the table when the creating session ended".

    I took this to...

  • RE: Fun with Decimals

    Correct answer, but the explanation is completely wrong!

  • RE: INT and SMALLINT

    Easy for a VB6 programmer 🙂

    If one of the options had been 1 or -1 or even 32767 I might have got it wrong though!

  • RE: SELECT @local_variable

    I guessed rigtht, but only because I knew it had to begin with 'Question' and there was only one answer that did that. If there'd been an option for 'Question...

  • RE: Clustered Index Internals

    "Dropping a rebuilding a clustered index on a partition scheme will move disk to other drives."

    I have no idea what this means, and the answer doesn't seem to mention it.

    Can...

  • RE: Fun with Scale and Precision

    sknox (12/4/2009)


    Steve Eckhart (12/4/2009)


    select cast(1.67574 as decimal(38,10)) = 1.675400000 which has precision 6 and scale 10, right?

    and

    select cast(10000 as decimal(38,10)) = 10000.0000000000 which has precision 1 and scale 10, right?

    wrong,...

  • RE: T-SQL

    Lynn Pettis (11/17/2009)


    You know, I haven't tried writing a QotD. Have you?

    Ah, that old chestnut.

    I've never been Prime Minister either, but I still get to say what I think...

  • RE: T-SQL

    Lynn Pettis (11/17/2009)


    Yes, getdate() and getutcdate() return different values, just look at what they return when you run them. However both functions return values that are equivelent to each...

  • RE: T-SQL

    bitbucket-25253 (11/17/2009)


    Lynn Pettis has explained in great detail the reason the times are the same, and as a matter of fact has explained the reasoning better than I could have....

  • RE: T-SQL

    Lynn Pettis (11/17/2009)


    Everyone is looking at the values, yes, they are "different", but both represent the same time. One is local, the other UTC.

    If that is the reasoning then...

  • RE: T-SQL

    Thought about answering True, because for me (in the UK) they will return the same value, but figured that the author was probably in the US so the answer was...

  • RE: DateTime Trick

    Surely date formatting should normally be part of the presentation layer? I always return the whole datetime value and format it on the client, using their regional settings etc.

  • RE: Varchar or Char?

    Thanks Hugo 🙂

Viewing 15 posts - 616 through 630 (of 656 total)