Forum Replies Created

Viewing 15 posts - 346 through 360 (of 717 total)

  • RE: TRUNCATE in TRANSACTION

    Koen (da-zero) (1/5/2011)


    And I thought I was already "old" because I have used floppy disks 😀

    But have you used 8" floppy disks?

  • RE: T-SQL

    Alberto IT (1/5/2011)


    To complicated. Yo can solve it using CHARINDEX:

    As long as you don't mind incorrect results:

    DECLARE @inputValue NVARCHAR(20)

    DECLARE @student TABLE

    (Id INT PRIMARY KEY IDENTITY(1,1),

    StudentName NVARCHAR(50),

    StudentResult INT)

    INSERT INTO @student

    VALUES( 'Hardy',...

  • RE: TRUNCATE in TRANSACTION

    Hugo Kornelis (1/4/2011)


    I replied wrong - I saw the rollback after the truncate, assumed the question intended to test my understanding that a truncate can be rolled back, and then...

  • RE: T-SQL

    Thanks for the question!

  • RE: New Log Files

    Nice easy question, thanks!

  • RE: smalldatetime

    Thanks for the question, and thanks Hugo for your explanation.

    This question was really easy, as I knew the errors couldn't happen as they were stated, so there was only one...

  • RE: Swap columns

    Thanks for the question!

    I think this would fall under the "Halloween Protection" portions of updates and deletes.

    For some trivia you can read some about the Halloween problem here.

  • RE: Fun(?) with DATETIME2

    Brandie Tarvin (12/28/2010)


    Microsoft is a U.S. Company. The U.S. was a collection of British colonies back in 1752. Hence, the assumption, on the part of the author, that everyone would...

  • RE: Subtle Line Feed / Carriage Return issue

    Only correct for 2005 RTM? Can't say as I like this question...

  • RE: NULL Values and Joins

    Thanks for the question, and the explanation of why the explanation seemed so weird.

  • RE: SELECT TOP

    Hugo Kornelis (12/23/2010)


    I got the question right, assuming that the submitter was unaware of the fact that there is no guarantee for this behaviour. I was then surprised to see...

  • RE: Sequence

    Thanks for the question.

  • RE: Merry Christmas

    I like questions like this, easy and lots of points, thanks!

  • RE: Fun(?) with DATETIME2

    I agree with the others, that without the mention of Britain in the question, the date is perfectly valid and option 1 should have been the correct answer.

  • RE: How can I set identity_insert on a tablename passed to an sproc

    Don Bernstein (12/22/2010)


    SET IDENTITY_INSERT IDDemo OFF

    EXEC ('SET IDENTITY_INSERT IDDemo ON')

    INSERT IDDemo (pk_ID, Textdata) Values (4, 'This fails')

    When I run it (sql2005), I get an error: Cannot insert explicit value for...

Viewing 15 posts - 346 through 360 (of 717 total)