SQL Server 2005 Maintenance Plans have an option for a Maintenance Cleanup Task that is designed to help you delete backup files older than a certain age. However, this feature is buggy, and you might find that backup files are not being deleted, with the result that your disks can become full. This article offers some advice on how you might get this feature working.
There are several things that you can do that might help to resolve this problem. First of all, you must ensure that you are running at least Service Pack 1. SP1 fixed a problem with the Hours/Days/Weeks drop down list. If you have not installed any Service Packs for SQL Server, I would strongly recommend that you do so -- Microsoft fix important security issues with their updates.
Assuming that you are running a recent Service Pack, these are the steps that will probably resolve your issue:
- Remove the dot from the File extension field (i.e., type bak instead of .bak)
- Add a trailing back-slash to the Folder field (i.e., E:\Backups\, not E:\Backups)
After taking those two steps, it will probably work. If not, these are other suggestions that you might try:
- Try using wildcards in the File extension field (E.g., *, .*, *.*)
- Try using different case in the File extension field -- it might be case sensitive (i.e., BAK might be different to bak and Bak), and should match your actual files
About
We are a small British company that produces business-oriented software and solutions. These articles are a product of our daily work - information that we think might be useful to share. We hope you find them useful.
Our Software
These are some of our products. Several are open source, some are web-based and others are proprietary:
Categories
- .NET (10)
- Apple (2)
- Business (5)
- CSS (1)
- HTML (2)
- Innovation (4)
- Java (4)
- Javascript (1)
- Leadership (1)
- MySQL (2)
- Oracle (6)
- Postgres (1)
- Programming (5)
- Rails (4)
- Ruby (10)
- SQL Server (9)
- Subversion (1)
- Web (5)
- Windows Server (2)
Archives
- July 2010 (2)
- September 2009 (5)
- August 2009 (1)
- July 2009 (12)
- June 2009 (16)
- May 2009 (3)