November 21, 2007 at 12:10 pm
I have a strange question, my company upgrade SQL2000 to SQL2005, running application was very fast when set up that day. BUT, after DBA running maintenance plan that night. it is slow right now. I know the maintenance plan shouldn't slow down the application. i use SQL profile to check. couldn't find the reason. Can somebody help me? really appreciate...
November 21, 2007 at 4:59 pm
Depends on what the maintenance plan is doing... DBCC REINDEX, can crush performance on very large tables that have large indexes or a CLUSTERED index that doesn't follow a chronilogical order. Not just in 2k5, either.
--Jeff Moden
Change is inevitable... Change for the better is not.
November 24, 2007 at 8:36 pm
Can you post what is being done in the maintenance plan? That can give us a better idea. As Jeff indicated, there are some operations which can hamper performance depending on how the indices, etc., are used.
K. Brian Kelley
@kbriankelley
December 3, 2007 at 11:52 am
Thanks Jeff & K. Brian Kelley,
I am out of town couple of days. sorry for delay your reply, as i ask other programmer, they said the administrator running maintance plan most for Check database, shrink db, Reorganized index and Rebuild index.
thanks a lot for your help.
December 3, 2007 at 12:40 pm
DO NOT SHRINK!
This is bad, ruins your index rebuild and can cause fragmentation. That could be part of your problem.
Can you better define how you know things are slow or what tests you've done to confirm this?
December 3, 2007 at 1:24 pm
Hi Steve Jones,
The application writing in classic asp. using Stored procedure to retrieve data. when run a schedule report. pick up the from date and between date, it just take less 5 second to general a report if the date just in one month. but right now it takes over 15 seconds.
The story was: they tested when moved to new sever. it was quickly. but the night the DBA running the maintenance plan which it is with the SQL2005. thing getting slow. very weird.
I am really appreciate your help.
December 3, 2007 at 4:46 pm
Make sure that statistics are up to date (and auto gen is on). I'd also rebuild the indexes and run the application a few times. This will help you determine if there is indexing you can do better.
It might be more data that's slowing things, maybe the selectivity has changed. Hard to know what else is wrong.
If you run the same query through SSMS, is it slow? Can you look at the plan and see what seems to be taking a long time? Maybe post the query and plan.
I doubt the maintenance plan is causing issues other than shrink potentially causing issues.
December 4, 2007 at 4:45 am
Stupid question, but when you upgraded your software, did you upgrade your hardware too?
I've noticed on some boxes that if the hardware remains at 2000 levels, that 2005 can run a LOT slower than it's supposed to.
Though, I believe Steve J. is on the right track when he's talking about index rebuilds & shrinkage. How often do your maintenance plans run? Once a day? Once a week? etc.
Viewing 8 posts - 1 through 8 (of 8 total)
You must be logged in to reply to this topic. Login to reply