Viewing 15 posts - 136 through 150 (of 183 total)
Very cool and good to know.
I think you just saved my plenty of time in my OCD of ordering joins and where clauses logically.
I agree with you on...
December 17, 2009 at 3:34 pm
Thanks Grant 🙂
I know how to use sp_executesql and pass parameters through that. My only issue is getting around the character limit for my more robust queries 🙂
December 7, 2009 at 10:51 am
Not this one necessarily, but I have several Stored procedures that are similar to this vien, some of them have multiple variations that I would like to test the viability...
December 5, 2009 at 12:57 am
Yes my jaw hit the desk when I saw 50million cost originally!
I concluded after researching the chaotic sea that was the execution plan, that the distinct counts done on...
December 4, 2009 at 3:04 pm
So I managed to get this refactored finally, other critical projects took priority!
I managed to squeeze the script down to 1 CTE and its subsequent Select statement. The high level...
December 4, 2009 at 2:35 pm
Gail,
On your second link when you wrote about the Dynamic SQL; I really like that idea however my code is a little over 10k characters and parametrized
I have been...
December 4, 2009 at 2:31 pm
Awesome idea Gail thanks!
Thank you for the links as well, they were very helpful!
December 4, 2009 at 12:15 pm
Sorry for the delayed response on this!
I believe I figured out the problem. Here is what I believe was the issue; The stored proc is used for reporting service reports....
December 3, 2009 at 12:04 pm
Thanks for the info!
Haha nice! Yea I know I can do it...its doing it when I have a lot on my plate already, plus deadlines of getting these queries done...faced...
November 13, 2009 at 12:46 pm
That's actually exactly my intended need!
That solution crossed my mind a few times, the problem is I would have to rewrite the query I have which is over 200 lines...
November 13, 2009 at 12:33 pm
Ok I have attached a text file that builds the data (19 rows) and does 3 select queries.
The first is the main and would be a small chunk out...
November 12, 2009 at 5:05 pm
Ok Lynn you got it 😀
I know the article...I was being lazy (ok I was extremely busy!) and hoping for an easy answer...I will compose something here to consume 😀
November 11, 2009 at 10:13 am
Yes Autocreate Statistics are on. I was just making sure the DTA tuning engine creating its own extra ones, if I should add that to the table drop and create...
November 11, 2009 at 9:50 am
Not a problem Bob.
What is the Crosstab solution?
October 14, 2009 at 4:45 pm
So the Join ended up doubling the time it took to run, but I did find a single query solution to assign the values outside of a CTE :-D. It's...
October 14, 2009 at 4:34 pm
Viewing 15 posts - 136 through 150 (of 183 total)