Viewing 15 posts - 7,561 through 7,575 (of 8,416 total)
lmu92 (6/28/2009)
Paul White (6/27/2009)
Clearly, in this case, and with this data distribution, there is nothing to choose between the three methods. ...Paul
But how about the method I posted above (let's...
June 28, 2009 at 4:12 am
Florian Reischl (6/27/2009)
June 28, 2009 at 1:29 am
Jeff Moden (6/27/2009)
I'll probably stick to using the Cross-Tab code
Me too. I'm really quite anti-PIVOT myself (as I have said at least once earlier on this thread) but I...
June 28, 2009 at 1:21 am
Hey Lutz,
My results were the same as yours; and I agree with your assessment.
Clearly, in this case, and with this data distribution, there is nothing to choose between the three...
June 27, 2009 at 8:40 pm
Here is a test rig to try the various methods on the traditional one million rows.
(By the way moving a sub-query like this to a common-table expression generally results in...
June 27, 2009 at 1:01 am
Carl Federl (6/25/2009)
Agree that the SQL for an after trigger appears simplier but...
I'll go with the simpler one then 😀
Anyhow, it seems the thread has it's answer and we have...
June 26, 2009 at 6:27 pm
Grant Fritchey (6/26/2009)
June 26, 2009 at 6:21 pm
Steve Jones - Editor (6/26/2009)
Alright, I'm leaving for a week. Behave yourselves on the thread.
Have fun whatever you're doing. I'm sure we'll all try hard to be extra good....
June 26, 2009 at 8:41 am
Ian Scarlett (6/26/2009)
Credit where it's due for giving it a go
Hope my post didn't sound too critical... it was meant as constructive criticism:blush:
I read it as constructive criticism :-)...
June 26, 2009 at 8:20 am
jcrawf02 (6/26/2009)
[vent]Just curious, would it be considered standard practice to always do a full copy of a table when refreshing to a reporting server? (rather than just updating changes)
[/vent]
It depends...
June 26, 2009 at 7:59 am
Credit where it's due for giving it a go. 🙂
I agree that you should personally test code you post - for credibility's sake.
Paul
June 26, 2009 at 7:57 am
Hey guys,
'Pandian S' posted what I believe is the correct answer...in case you missed it in all the excitement there 😉
Paul
June 26, 2009 at 7:29 am
GilaMonster (6/26/2009)
June 26, 2009 at 7:26 am
OBJECT_DEFINITION works nicely for views.
You can also look in the definition column of sys.sql_modules - join from sys.views to see only the view definitions.
Paul
June 26, 2009 at 7:19 am
Hey mazzz,
Take a look at the huge library of generally useful scripts also available for free on this very site - see the scripts link on the sidebar
<--- over there!
Paul
P.S....
June 26, 2009 at 7:12 am
Viewing 15 posts - 7,561 through 7,575 (of 8,416 total)