Forum Replies Created

Viewing 15 posts - 661 through 675 (of 819 total)

  • RE: TRUNCATE in TRANSACTION

    CirquedeSQLeil (1/4/2011)


    I didn't like this question very much for the same reasons others have already noted. That said, I did learn a bit from it.

    I agree, I learned to...

  • RE: Swap columns

    Tom.Thomson (12/30/2010)


    Carlo Romagnano

    Mixing column swap with quirky update in this form is perhaps interesting, but certainly not deterministic - even though there are no indexes involved so that the...

  • RE: New Log Files

    Last answer for 2010, I get it wrong.

  • RE: Swap columns

    I do not see a value for 2 points. It's only a simple swap. It behaves the same in any sqlserver release.

    DECLARE @MyTable TABLE (Col1 INT,

    ...

  • RE: Fun(?) with DATETIME2

    I learned more from QotD of last friday: "what type of shirts does Steve Jones wear on Fridays?"

  • RE: Merry Christmas

    I got it right as specified on BOL: http://support.microsoft.com/kb/stevejones/us

    HAVE GOOD HOLYDAYS AND HAPPY NEW YEAR!!!!!!!!!!!!

    :-):-D:-P:-D:-)

  • RE: Subtle Line Feed / Carriage Return issue

    Some tools (powerbuilder,qlick) replace CR and LF with space, so one line comment

    in the script could alter the command.

    Running the script in sql2000 I get 1,3,4 but in sql2005 +...

  • RE: Subtle Line Feed / Carriage Return issue

    Hardy21 (12/23/2010)


    @carlo: you are right.

    But as per the question, we should give answer for the question: What will you get executing this T-SQL code in Query Analizer (SQL2K) or...

  • RE: Subtle Line Feed / Carriage Return issue

    It's not a bug: CR is carriage return, so the line is the same.

    The line 2 is not printed beacuse the print command is joined to the commented line.

    So, change...

  • RE: NULL Values and Joins

    volter_ddun-856145 (12/23/2010)


    first thing it can't insert null value in to Table1 AND after running that query in sqlserver i didn't get result as mentioned Correct answer.

    Correct answer: 7 rows...

  • RE: SELECT TOP

    da-zero (12/21/2010)


    I'm confused: the correct answer is the row that is returned "most of the time"?

    If yes, then it isn't a good question, as other answers might be possible. If...

  • RE: NULL Values and Joins

    ian.grace (12/20/2010)


    I don't understand how the first transaction could succeed given the attempt to insert the null value into the not-null field "a". Also, why is the last insert...

  • RE: NULL Values and Joins

    philip.cullingworth (12/20/2010)


    da-zero (12/20/2010)


    Your output has 7 rows and the column d contains "three" for the 7th row, so it should be answer D.

    But Answer D is

    7 rows where column...

  • RE: NULL Values and Joins

    vk-kirov (12/20/2010)


    No rows were inserted into table2? B not C is the correct answer? Terrible, terrible explanation 🙂

    The explanation is more terrible than the question: I should read it at...

  • RE: T-SQL

    There could be a super-secret release that offers the expression of a day number in base nineteen.;-):hehe::-D:-)

    The date 21 december 2012 depends on the fact that mayan DBA are still...

Viewing 15 posts - 661 through 675 (of 819 total)