Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 7,484 total)

  • RE: Happy Thanksgiving 2015

    Fairly straightforward question. I imagine the US Regional settings thing is just to say that '20130214" is interpreted as YYYYMMDD when converted to date and that the first day...

  • RE: Are the posted questions getting worse?

    Steve Jones - SSC Editor (11/25/2015)


    Alvin Ramard (11/25/2015)


    Steve Jones - SSC Editor (11/25/2015)


    The spam problem is tough. Believe me, no matter what we do, people will find ways around it....

  • RE: The dotted table

    Recce70 (11/25/2015)


    They have not made a manual large enough with which to beat the developer / DBA who would create a table like this in Production.

    Why would I want to...

  • RE: Are the posted questions getting worse?

    Brandie Tarvin (11/23/2015)


    Luis Cazares (11/23/2015)


    Is it me or many people don't really understand error handling or why and how to use try...catch...?

    It's not just you. Though, to be fair, Try...Catch...

  • RE: The dotted table

    sknox (11/24/2015)


    Hugo Kornelis (11/24/2015)


    The correct answer is missing: "The table doesn't have a primary key". It's also suspect that all columns are nullable.

    From the answer options I deduced that I...

  • RE: Today's Random Word!

    Ed Wagner (11/24/2015)


    Smaug

    worm

  • RE: The dotted table

    Nice question.

    But your "not necessarily recommended" is a bit less emphatic than my expression would be if I encountered something like this in a code review. :rolleyes:

  • RE: Committing Work

    bsproat (11/20/2015)


    Interesting that this doesn't work

    BEGIN TRANSACTION;

    UPDATE

    MyTable

    SET

    test = 9;

    COMMIT WORK2

    GO

    But this does

    BEGIN TRANSACTION;

    UPDATE

    MyTable

    SET

    ...

  • RE: Committing Work

    Luis Cazares (11/20/2015)


    It actually should work with previous versions as well. Documentation for SQL Server 2000 includes it, but I couldn't test on anything older than 2008R2.

    https://technet.microsoft.com/en-us/library/aa258231(v=sql.80).aspx

    It's weird that this...

  • RE: Are the posted questions getting worse?

    robert.sterbal 56890 (11/20/2015)


    This is what I looked at:

    SELECT CURRENT_TIMESTAMP- SYSDATETIME() 'CURRENT_TIMESTAMP- SYSDATETIME()',

    SYSDATETIME() 'SYSDATETIME()',

    SYSDATETIMEOFFSET() 'SYSDATETIME()',

    SYSUTCDATETIME() 'SYSUTCDATETIME()',

    CURRENT_TIMESTAMP 'CURRENT_TIMESTAMP',

    GETDATE() 'GETDATE()',

    GETUTCDATE() 'GETUTCDATE()'

    CURRENT_TIMESTAMP- SYSDATETIME() was either

    1899-12-31 23:59:59.997

    or

    1900-01-01 00:00:00.000

    You...

  • RE: Are the posted questions getting worse?

    jasona.work (11/20/2015)


    If I recall from the MSDN page, the first three are a higher precision than the latter three, so that may account for some of the differences.

    The lower precision...

  • RE: Are the posted questions getting worse?

    jasona.work (11/19/2015)


    Just for Jeff Moden:

    How to get the date from SQL Server.

    Sample data required: None

    Queries:

    SELECT SYSDATETIME();

    SELECT SYSDATETIMEOFFSET();

    SELECT SYSUTCDATETIME();

    SELECT CURRENT_TIMESTAMP();

    SELECT GETDATE();

    SELECT GETUTCDATE();

    :hehe:

    Was the syntax error deliverate? :hehe:

    Of course having...

  • RE: User Defined Data Type Alias

    Oh dear, brain not working today, it seems to have entered lazy mode. Just answered last weeks create type question (correctly) and commented on the terminology (which MS seems...

  • RE: Nested Types

    Nice simple question.

    But although it is nice and simple and it's easy to see which option is intended to be correct, pedantically speaking perhaps none of them is correct -...

  • RE: Are the posted questions getting worse?

    BrainDonor (11/17/2015)


    Lynn Pettis (11/16/2015)


    BrainDonor (11/16/2015)

    I've lost count of the number of times I've prepared the material to explain a question, only to have found the answer in doing so.

    SSC is...

Viewing 15 posts - 1,366 through 1,380 (of 7,484 total)