Viewing 15 posts - 346 through 360 (of 417 total)
Never underestimate the capabilities of a clever but bored engineer. 🙂
Don Simpson
January 21, 2015 at 8:12 am
INSERT(Test1)SELECT CASE WHEN @Test1='' THEN @Test1=NULL ELSE @Test1 END
Is the " @test1=NULL" in the middle of the case statement correct? Shouldn't that just be "NULL"?
Don Simpson
January 20, 2015 at 2:09 pm
What about converting a given column to a sparse column?
Don Simpson
January 16, 2015 at 9:04 am
5 - NEVER EVER EVER use SSMS's 'Edit Top 200 Rows' feature. "Using this locks the table when the window is left open".
I've all but proven this one untrue,...
Don Simpson
January 15, 2015 at 9:41 am
Not sure what the purpose is for the "SET IMPLICIT_TRANSACTIONS OFF" at the end of the script.
Don Simpson
January 15, 2015 at 9:36 am
If we ever work together we may never finish anything since we will just keep changing * to 1 and 1 to *. I am reminded of the Sneetches story...
Don Simpson
January 14, 2015 at 2:22 pm
Eirikur Eiriksson (1/10/2015)
Jeff Moden (1/10/2015)
Don Simpson
January 14, 2015 at 1:09 pm
MyDoggieJessie (1/14/2015)
"COUNT()" returns total number of rows, irrespective of the contents...unless a specific column is specified that contains a NULL value, then those will be omitted
That's not quite right. ...
Don Simpson
January 14, 2015 at 8:32 am
Koen Verbeeck (1/14/2015)
Nice but somewhat easy question (especially after the quite lengthy discussion of NULLs and aggregates last week). Not sure it is worth 2 points.
+1, but I'll take the...
Don Simpson
January 14, 2015 at 8:21 am
You might have better luck doing the grouping is SQL.
Don Simpson
January 13, 2015 at 3:56 pm
What is the reporting or presentation tool that is replacing Excel? Something like Crystal or SSRS?
Don Simpson
January 13, 2015 at 10:44 am
Incidentally, I have a similar problem with CountDistinct. For a particular report, where there are 15 groups, this function:
RunningValue(Fields!ClaimID.Value, CountDistinct, Nothing)
skips 2 when the set is ordered alpha...
Don Simpson
January 13, 2015 at 10:27 am
gissah (1/13/2015)
CountRows("group1") or count(group1) all gives me the detail...
Don Simpson
January 13, 2015 at 10:15 am
It's interesting that neither of these:
substring('aeiouy', cast(rand() * 6 + 1 as int), 1)
substring('aeiouy', cast(ceiling(rand() * 6) as int), 1)
exhibit the same problem.
Don Simpson
January 9, 2015 at 9:00 am
Koen Verbeeck (1/7/2015)
DonlSimpson (1/7/2015)
1 + 2 + 3 + NULL is NULL, absolutely. NULL is not replaceable by zero. Any set with a null value has a null...
Don Simpson
January 7, 2015 at 2:06 pm
Viewing 15 posts - 346 through 360 (of 417 total)