Forum Replies Created

Viewing 15 posts - 121 through 135 (of 221 total)

  • RE: ShrinkFile

    Nice try...

    Quite interestingly, not even the link to the supporting MSDN article is correct.

  • RE: Char with null

    Russell Shilling (1/10/2017)


    The answer is clearly wrong. Some of these questions are really questionable.

    The

    isnull(left(@b,3),'I ô Char') as ba

    will also return the string. The left function of

  • RE: Query regression by index or statistics?

    Thank you very much, Uwe!

    That was a very enlightening question and explanation. Definitely something to add to the tool belt for those pesky edge cases.

  • RE: INSERTing datetimeoffsets

    DOH! It was INvalid! Time for coffee...

  • RE: Dropping Audit Sessions

    Not quite sure I agree with the answer. There is a difference between what I must do and what I should do. According to the quoted article you do not...

  • RE: SQL 2016 COMPRESS

    Nice! Learned something new today.

  • RE: Trailing

    barry.mcconnell (10/11/2016)


    Interestingly, if you examine Information Schema Columns, the table only has 3 columns.

    I'd be a lot more surprised if there were more columns than that. Without a name or...

  • RE: Trailing

    Ed Wagner (10/11/2016)


    Okay, that's a little weird. Microsoft has updated the language to allow syntactically incorrect SQL based on popular habits. I see why they did it, but...

  • RE: Trailing

    This is a quite uesful anomaly. It allows for easy cut'n'paste between table creation scripts, without worrying about deleting any trailing commas or having commas between constraints.

  • RE: Running External Scripts

    Nice'n'easy!

    Funny part in the docs:

    [ @language = ] 'language'

    Can be any supported language that has been registered by using xxx. language is sysname.

    Valid values are 'R'.

    How do I invoke xxx?:-P

  • RE: Comparing with NULL

    Nice question, but the correct answer is as usual: "It depends". In this case on the setting of ANSI_NULLS.

  • RE: Complex foreign key

    Good question, but a small nit-pick:

    "The syntax of the batch is correct" is not really an output of the batch, but the conclusion of the parser. That message doesn't appear...

  • RE: Updating a View with CHECK

    shaneoneillis (9/15/2016)


    Interesting how it fails with no error, thanks Steve!

    Disregarding the fact that it doesn't, of course...:-P

  • RE: Updating a View with CHECK

    Mighty (9/15/2016)


    +1

    Reading this question, it seems logical to assume that there is a record with id 2.

    And also assume that it's original value for the HireDate falls within the CHECK...

  • RE: Updating a View with CHECK

    Magnus Ahlkvist (9/15/2016)


    I don't Think the correct answer is correct.

    When I try to update a view (defined using WITH CHECK OPTION) with a value which makes the row fall outside...

Viewing 15 posts - 121 through 135 (of 221 total)