Viewing 15 posts - 1 through 15 (of 232 total)
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...
December 25, 2025 at 3:10 pm
Backslashes do have a tendency to disappear when moved between environments...
December 19, 2025 at 1:07 pm
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...
September 10, 2025 at 7:13 am
maybe "you must open UDP port 1434"
Yep. Not touching this quite yet...
April 15, 2025 at 6:56 am
maybe "you must open UDP port 1434"
Yep. Not touching this quite yet...
April 15, 2025 at 6:54 am
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...
February 14, 2025 at 7:26 am
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...
February 12, 2025 at 2:03 pm
Nothing, really, seeing as there is not [total] column in the table...
February 12, 2025 at 7:46 am
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...
December 6, 2024 at 1:28 pm
There are all sorts of wrong with that code, but only one that actually stops it from executing.
December 6, 2024 at 7:49 am
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...
October 16, 2024 at 7:05 am
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.
September 6, 2024 at 11:14 pm
I'm thinking both the answer and explanation got a bit lost in translation...
September 6, 2024 at 6:12 am
You can remove the TOP or the WITH CHECK option. Either will do the trick, as well as removing both.
February 26, 2024 at 11:58 am
Viewing 15 posts - 1 through 15 (of 232 total)