Forum Replies Created

Viewing 15 posts - 1 through 15 (of 232 total)

  • Reply To: Celebrating Tomorrow

    It works if your database uses one of the _SC collations. In that case, NCHAR accepts arguments up to 0x10ffff. It's an easy one to miss, and if your database...

  • Reply To: UNISTR Basics

    Backslashes do have a tendency to disappear when moved between environments...

  • Reply To: Using table variables in T-SQL

    I must admit I've never seen the construct "IS DISTINCT FROM NULL" before, and initially I thought that must be the error, but it's actually legit. My next thought was...

  • Reply To: Browsing for Instances

    handkot wrote:

    maybe "you must open UDP port 1434"

    Yep. Not touching this quite yet...

  • Reply To: Browsing for Instances

    handkot wrote:

    maybe "you must open UDP port 1434"

    Yep. Not touching this quite yet...

  • Reply To: Precision and Scale II

    What is the precision, scale, and length for an int variable?

    The correct answers are:
    10, 4, 0
    Explanation
    The precision of an int is 10, the length is 5, and...
  • Reply To: The Rank Window

    The question was "How many unique values are returned?", not "how many rows are returned that contain unique values?". So, other than the minor quibble with the missing column from the...

  • Reply To: The Rank Window

    Nothing, really, seeing as there is not [total] column in the table...

  • Reply To: Subqueries II

    joshua.banks wrote:

    If you're just seeing if the customerid exists in the other table shouldn't this be an EXISTS clause? No need to return the results of the subquery just see...

  • Reply To: Subqueries II

    There are all sorts of wrong with that code, but only one that actually stops it from executing.

  • Reply To: Crazy Code I

    Nice one!

     

    With this set of original data, it's not really doing much, since all the ID-s are different, so the inner SELECT will effectively yield the original table, and the...

  • Reply To: Am I on Synapse?

    Except you didn't really. Somehow you changed what I answered, from what is now the correct answer to the answer initially marked as correct.

  • Reply To: Am I on Synapse?

    I'm thinking both the answer and explanation got a bit lost in translation...

  • Reply To: Updatable Views II

    You can remove the TOP  or the WITH CHECK option. Either will do the trick, as well as removing both.

  • Reply To: The JSON Table

    Disappointed!

Viewing 15 posts - 1 through 15 (of 232 total)