Forum Replies Created

Viewing 15 posts - 526 through 540 (of 656 total)

  • RE: Subtle Line Feed / Carriage Return issue

    I didn't even notice it said SQl2000/2005 - somehow I always assume that questions will be targetted at the latest release.

    I must admit that I ran the script before answering...

  • RE: Sequence

    I get a pile of errors when I run it - Cannot insert the value NULL into column 'Seq'.

    I eventually worked out that this is because I have ANSI_NULL_DFLT_ON set...

  • RE: T-sql

    How many times do we have to have questions about the default precision of strings before everyone gets them right?!

  • RE: Printing Lengths

    Once again we learn that you should never rely on default datatype precision, but specify it yourself!

  • RE: Build date table

    Nils Gustav Stråbø (12/9/2010)


    to be able to answer it correctly, without cheating, you will have to manually write down how many rows are inserted in each run of the loop...

  • RE: Nulls

    da-zero (12/8/2010)


    Some people are still working with earlier versions of SQL Server.

    But hopefully none of them are still using ANSI_NULLS OFF or any other deprecated features?

  • RE: sys.syscomments

    The first and third answers are definitely correct (the first being a subset of the third), so I went for 'all of the above'. A good question, spoiled slightly by...

  • RE: Transactions

    I got it wrong, as the last time I tried any DDL within a transaction was 15 years ago in my Oracle days, when such changes could not be rolled...

  • RE: Conditional Order By

    Excellent question - which I got right due to having been buitten by exactly this problem in the past, and it took ages to track down the cause 🙂

  • RE: Predict the total count

    Even ignoring the date format problem, what is this question supposed to teach us? Why would anyone want to convert a date to a float?

  • RE: Using OVER with an Aggregate Function

    tilew-948340 (11/4/2010)


    My engish beeing what it is, I did also not get the differance between the first two

    Don't worry about it, I've lived in England for all 47 years...

  • RE: Using OVER with an Aggregate Function

    I knew what the answer was, and thought that "The maximum Tax Rates across all State/Province IDs" described it well. I supopose I should have read more closely and realised...

  • RE: Predict the outcome of the SQL statements

    I hope one thing that everybody has learned from these questions is that you should never rely on default precision for anything - you will inevitably get it wrong sooner...

  • RE: What will the results be for the code below?

    Christian Buettner-167247 (11/2/2010)


    Hm, am I the only one who thinks the given answer is false?

    Almost certainly 😉

  • RE: Predict the outcome of the SQL statements

    Knew the answer but had a brain fart and clicked the wrong option, oops!

    UMG Developer is right about the explanation.

Viewing 15 posts - 526 through 540 (of 656 total)