Viewing 15 posts - 61 through 75 (of 1,155 total)
Forgot to comment on the article :hehe:.
I thought the article was very informative, easy to read/understand, and offered great alternative methods to solving the "running total" enigma.
Nicely...
January 27, 2009 at 9:05 pm
Lynn Pettis (1/27/2009)
Smendle (1/27/2009)
That can happen on multi-processor systems that SQL is allowed to use.
I am sure this is in response to the following:
I received a private message with a...
January 27, 2009 at 8:57 pm
TheSQLGuru (1/8/2009)
January 8, 2009 at 7:55 am
Peter,
I love how you only return the totals in the first row of the output. this will definitely reduce the amount of data being returned to the application. ...
January 8, 2009 at 7:52 am
TheSQLGuru (1/7/2009)
phystech (1/7/2009)
TheSQLGuru (1/7/2009)
...If you never passed in a NULL value then the CASE is surperfluous, right?..
No, zero length string plays the role of NULL. That is if...
January 7, 2009 at 1:17 pm
phystech (1/7/2009)
TheSQLGuru (1/7/2009)
phystech (1/6/2009)
Adam Haines (1/6/2009)
The optimizer knows that
"CASE WHEN @FirstName IS NOT NULL THEN"
can be evaluated before the query is launched, since no column name is involved...
January 7, 2009 at 12:19 pm
phystech (1/6/2009)
Adam Haines (1/6/2009)
phystech (1/6/2009)
What can we do to make this query index seek? Well, we really only have two options. One is to use dynamic sql to...
January 6, 2009 at 3:57 pm
noeld (1/6/2009)
January 6, 2009 at 3:35 pm
Bryan Smith (1/6/2009)
January 6, 2009 at 3:20 pm
phystech (1/6/2009)
What can we do to make this query index seek? Well, we really only have two options. One is to use dynamic sql to build the predicate...
January 6, 2009 at 2:49 pm
TheSQLGuru (1/6/2009)
1) If you are going with dynamic sql, the go completely with it. Constructs such as this:
...
January 6, 2009 at 10:25 am
alessad (1/6/2009)
Otherwise there is no guarantee that the records are always sorted correctly, what do you...
January 6, 2009 at 8:54 am
rakhi.bhatia (1/6/2009)
So the way you have constructed your dynamic SQL, you took @FirstName and...
January 6, 2009 at 8:40 am
peter (1/6/2009)
I do not have the time to read it the lengthy article in full but as the OP rightly articulated,...
January 6, 2009 at 8:01 am
Viewing 15 posts - 61 through 75 (of 1,155 total)