Forum Replies Created

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

  • RE: Renaming a procedure

    I didn't even notice the conusion about the 'rename_by_alter' instructions. I was already aware of the behaviour of sp_rename/sp_helptext, so0 that ruled out the 1st option. 2 and 3 were...

  • RE: STUFF - 2

    DavidBridgeTechnology.com (12/10/2012)


    SELECT STUFF('123456', 1,3,NULL) -- "456" - SQL has found the first character, removed it and two next to it (3 in total) and inserted nothing into the string...

  • RE: STUFF - 2

    The explanation is fine for the second example.

    But there's no mention of why a NULL value for 'replace with' returns a non-null result.

    This confused me when I first came across...

  • RE: Which Statement will execute sucessfully

    Richard Warr (12/7/2012)


    Bit worrying how many people found this easy without giving any consideration to what the default schema might be for the user.

    How do you know whether they considered...

  • RE: Aggregates

    Hugo Kornelis (12/6/2012)


    Exactly WHAT is aggregated by the GROUPING_ID function??

    That's exactly the conversation I had with myself. Was this a trick question or not? In the end I went with...

  • RE: SET Options - 2

    Shame about the endless complaints about the semi-colon (does nobody ever read the thread before adding to it?)

    The easy way to have avoided confusion as to whether the syntax error...

  • RE: LIKE a vowel

    philip.cullingworth (12/3/2012)


    For interest, I thought I'd have a bit more of a look at which options displayed this effect, what caused Æ and æ to be returned.

    It appears on our...

  • RE: SQL

    Luckily I didn't not fail to get this wrong, but it wasn't easy due to all the double negatives.

    The correct answer to most of them is of course 'it depends'...

  • RE: Queries

    I didn't understand the question at all, so guessed. Having read the explanation I was none the wiser.

    So I tried it, and the execution plan was empty.

    confused.com

  • RE: Datetime Default

    Not sure how this one got through quality control, as the explanation is entirely wrong.

    The value of '1900-01-01' does not arise because of any default - the default will not...

  • RE: Select unmatched data from two columns

    Koen Verbeeck (11/26/2012)


    I wonder why the explanation talks about EXCEPT when none of the answers use it.

    +1 😉

  • RE: STUFF - 1

    There's an explanation of sorts here

    http://msdn.microsoft.com/en-us/library/ms188043(SQL.105).aspx

    (in the comments section at the end)

  • RE: Defaults

    There'd have been a few more wrong answers if it weren't for the "select 2" hint...

  • RE: Transactions in T-SQL

    Rather complicated!

    But easy to guess the right answer, as there had to be at least 2 rows in #temp (the 2 inserted outside the loop) which ruled out half the...

  • RE: Five percent rounded down

    Why would you define your variables as int if you are going to do non-integer calculations with them? Change the declarations to

    declare @Quota1 real, @Quota2 real, @Quota3 real, @Value real;

    and...

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