Viewing 15 posts - 49,756 through 49,770 (of 59,091 total)
You also have many columns being returned in the SELECT lists of the derived tables that aren't used anywhere else... remove them. Just return enough data in those derived...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 2:10 pm
Doing a convert on a column guarantees there's no chance of an index being used as effectively as it could... you need to change this...
AND (convert(VARCHAR(6), TT.StartTime, 112)= '{?Period}')
......
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 2:05 pm
Ummm, dates cannot be blank... so doing this...
AND (ISNULL(update_date, '') <> ''
... is a total waste of CPU clock cycles. Further, putting ISNULL on the date column will...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 1:53 pm
Ben Leighton (6/24/2008)
sorry looks to me that Jeff has just made the point I'm trying to make. Thanks to all!
Absolutely not a problem, Ben. Thanks for the feedback.
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 1:07 pm
TheSQLGuru (6/24/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 12:47 pm
And... you might just want to learn to use Float for financial calculations and then round the answer to make the humans happy. A great many of the functions...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 8:04 am
Heh... Decimal is prone to more "rounding" errors than Float ever will be... it's a matter of rounding to the correct scale... For example, what should the answer to 1/3*3...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 7:59 am
You can use a similar method in 2k, but you'll need to insert into a temporary table that has an IDENTITY column so that you get sequential numbers.
What you're looking...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 7:29 am
Yep... suggestion is that you post the code that has the problem insert so we can see what you're actually doing and post the text from the actual error so...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 7:18 am
I agree with Stephanie... you really need to find out both the what and the why... if they intend to use only numerics with leading zero's ... forever... then store...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 6:20 am
Sound like you've got a pretty good plan...
Deleting from last month is easy... Let's change the definition just a bit to make this even more simple... you want to...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 6:13 am
I'd try to help... but I can't even spell SSRS, yet. Sorry...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 5:59 am
Manie Verster (6/24/2008)
I downloaded on of your books on SQLServerCentral named SQL Server DBA Best Practices
Manie... what's the page link to get to that download?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 5:56 am
I've been having good success with DTA on set based code. Sometimes it's recommendations don't actually speed anything up but, as some have said about other tools, it's a...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 24, 2008 at 5:37 am
venki (6/23/2008)
I am pulling the data i.e recordset by written a query from different tables.
I supposed to modify...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 23, 2008 at 10:32 am
Viewing 15 posts - 49,756 through 49,770 (of 59,091 total)