Viewing 15 posts - 44,206 through 44,220 (of 59,063 total)
Paul White (4/11/2009)
April 11, 2009 at 8:07 pm
To add to what Flo stated... if you insert more than one row with an IDENTITY column, you can use OUTPUT to capture all of the IDENTITIES created as a...
April 11, 2009 at 3:40 pm
A well formed crosstab can be almost twice as fast as a Pivot and a whole lot easier to read, to boot. Please see the following articles...
http://www.sqlservercentral.com/articles/T-SQL/63681/ (Performance...
April 11, 2009 at 3:38 pm
I think you could probably cut way down on the scans and rowcounts if you did a little "Divide'n'Conquer" to do some pre-aggregations to temp tables and join on those.
Of...
April 11, 2009 at 3:25 pm
Bob Hovious (4/11/2009)
Hey... who are you callin' an oxymoron!? :unsure:
Heh... so you know that guy, too, huh? 😀
April 11, 2009 at 3:16 pm
Heh... no... that's certainly not ring knocking in my book. It takes a certain amount of hair to stand up in front of a worldwide community and speak. ...
April 11, 2009 at 3:09 pm
You bet... thanks for the feedback, Flo.
April 11, 2009 at 3:04 pm
sku370870 (4/11/2009)
I want to write this in such...
April 11, 2009 at 2:35 pm
Florian Reischl (4/11/2009)
Try to handle it with a PIVOT operator.
Greets
Flo
PS: Maybe have a look to the "Best Practices" link in my signature for posting sample data and DDL. This always...
April 11, 2009 at 2:32 pm
mister.magoo (4/11/2009)
Jeff Moden (4/11/2009)
April 11, 2009 at 2:22 pm
I missed one... there is one solution above that takes an IDENTITY column into consideration.
April 11, 2009 at 2:20 pm
Oh... be careful folks... this wonderful and great interplay of thoughts and ideas to come up with some absolutely outstanding code all share the same common fault... they all can...
April 11, 2009 at 2:11 pm
The answers about sargeable predicates have already been pretty well covered on this thread, so I'll not go there.
Going back to the original question, the first code snippet uses correlated...
April 11, 2009 at 1:55 pm
arup_kc (4/9/2009)
Here is a situatrion where without GO, its throwing an error.
ALTER TABLE...
April 11, 2009 at 1:47 pm
Apologies for the large delay in responding...
At this point, I'm not sure... guess I'd have to play with it. I'd probably clean all the data so that anything that...
April 11, 2009 at 1:05 pm
Viewing 15 posts - 44,206 through 44,220 (of 59,063 total)