Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Maintenance tasks order

Author  Topic 

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-12-21 : 16:23:59
Presently we are taking daily full backups, diff backups for every 6 hours, tlog backup for every 10 min.
Sofar no issues with SQL Server 2005

As per basic maintenance tasks,...i am planning to setup CHECKDB, REbuild index, Re-organize, Updatestats.

Please guide me on order of these tasks and shcedule time. Thank you

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-21 : 16:42:01
I run DBCC CHECKDB after the full backup, but if I have a test system setup (daily production restore) then I run DBCC CHECKDB there instead. I don't reorganize anything at the moment. I rebuild nightly and then run updatestats.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-12-21 : 16:49:12
When you say Rebuild index..can I check the box KEEP INDEX ONLINE WHILE REINDEXING


User will connects application thru database and retrieve the data. We don't want any disconnections.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-21 : 18:58:10
I'd suggest running my rebuild index script as it handles the ONLINE option wherever it is possible. If it's not possible (check BOL for details), then it does it OFFLINE.

Here's my script: http://weblogs.sqlteam.com/tarad/archive/2009/11/03/DefragmentingRebuilding-Indexes-in-SQL-Server-2005-and-2008Again.aspx

Hopefully you are running Enterprise Edition to make use of ONLINE option.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -