Viewing 15 posts - 49,741 through 49,755 (of 59,078 total)
Set the recovery mode to SIMPLE or Bulk Logged... use SELECT INTO to make the tables and transfer the data. Then, add indexes, keys, triggers, and constraints... use NOCHECK...
June 24, 2008 at 2:25 pm
It's the number of seconds since 1970-01-01 and can be changed to an SQL Server DATETIME datatype using something like the following...
SELECT DATEADD(ss,1195507770,'1970-01-01')
June 24, 2008 at 2:13 pm
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...
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}')
......
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...
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.
June 24, 2008 at 1:07 pm
TheSQLGuru (6/24/2008)
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...
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...
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...
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...
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...
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...
June 24, 2008 at 6:13 am
I'd try to help... but I can't even spell SSRS, yet. Sorry...
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?
June 24, 2008 at 5:56 am
Viewing 15 posts - 49,741 through 49,755 (of 59,078 total)