Viewing 15 posts - 526 through 540 (of 825 total)
Unbelievable, 98% of right answers! I think it's the record on ssc.
Next, I will submit the following question:
What color was the Napoleon's WHITE horse?
😛
January 11, 2013 at 1:07 am
Your script replace 5 consecutive digits with 2 stars.
Here an optimized version.
declare @substr varchar(50)--substring of input string in while loop
declare @index int--index of number in the substring
set @substr = '1234567890abc89900123456abcde'
while...
January 10, 2013 at 1:03 am
Koen Verbeeck (1/8/2013)
I spend 5 minutes looking for a mistake, only to finally decide there wasn't one, all joins seemed legit. I...
January 9, 2013 at 12:58 am
I prefer ISNULL, the cast is done to the first argument.
I use it e.g. with numeric type ISNULL(int_null,0). But, I should remember that with string ISNULL may be dangerous as...
January 8, 2013 at 1:39 am
Steve Jones - SSC Editor (1/1/2013)
Parens corrected, and my apologies. I changed to question to exclude Jan 31, this that doesn't work.Happy New Year.
I'll award back points tomorrow.
Hi Steve and...
January 3, 2013 at 3:06 am
Koen Verbeeck (12/27/2012)
Nice question about a new feature, but your explanation could have mentioned the FOR BROWSE option. After all, that's what the question is about 🙂
+1
December 28, 2012 at 1:18 am
Toreador (12/24/2012)
Glad to see that option 5 really should be correct, I'd started to think...
December 24, 2012 at 9:12 am
Koen Verbeeck (12/20/2012)
December 21, 2012 at 1:03 am
Hugo Kornelis (12/12/2012)
If you exactly follow the instructions, executing the 'alter proc' script after making the...
December 12, 2012 at 2:35 am
The profiler shows Read 0
This is the most wrong and useless qotd in the history of ssc.
November 28, 2012 at 3:54 am
Easy question, but answer really wrong!
The DEFAULT is used only if no value is specified for the column or DEFAULT VALUES keyword.
-- default is triggered
create table #b (a datetime default...
November 27, 2012 at 1:09 am
demonfox (11/19/2012)
After reading the file table, I fell on varbinary(max) ..need to read it again ..
thanks for the question..
+1 🙁
November 20, 2012 at 3:09 am
I think it depends on "inaccuracy in the floating point represtentation" as said Hugo.
STR convert any number to float.
Here the script to force the right round (a double cast to...
November 19, 2012 at 1:42 am
Viewing 15 posts - 526 through 540 (of 825 total)