Performing Maintenance with SQL Server Databases in Full Recovery mode
Written By: Jeremy Kadlec -- 12/12/2006
-- read/post comments
-- print --
Rating:
(not rated yet)
Rate
Problem When I have performed database maintenance in the past the transaction log backups were huge and I was unable to restore the transaction logs. This caused more problems for me so I have stopped performing SQL Server maintenance. My SQL Server performance is now an issue, so I am looking for a process to be able to perform database maintenance for my databases in full recovery mode during a pre-defined maintenance window.
Solution Performing regularly scheduled maintenance is critical for high performance and ensuring the users will have a positive experience with your applications. The challenge with performing database maintenance for databases in full recovery mode is the excessively large transaction log backups as compared to databases in simple recovery mode. The excessive size is due to the full recovery mode retaining all of the before and after records. With a great deal of maintenance the probable cause for not being able to restore the transaction logs is an incorrect pointer reference.
The process below to perform database maintenance during a pre-defined maintenance window should be tested in a development environment for databases in full recovery mode prior to executing in production:
Next Steps
- Assess your databases to determine if the transaction log backup.
- If you have been hesitant to perform database maintenance for databases in full recovery mode, consider the approach listed above in a development environment.
- If the development process works as expected, test the process in your QA environment and then push the code out to production environment.
- If the backup time and disk space is causing issues for you, consider the backup and recovery tools for SQL Server that can compress the backups to save 50% or more of the disk space and 50% or more of the backup time needed.
- For additional MSSQLTips.com tips on performing database maintenance, reference these tips:
Readers Who Read This Tip Also Read
Free Live Webcast
Comment or Ask Questions About This Tip
|
|
|
|