• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 843
  • Last Modified:

Maintenance Plan does not clean up old Backup files

on SQL Server 2000 I have a maintenance Plan setup for doing transaction and full backups.  I have it set to keep one backup file.  Periodically it does not delete them for days at a time.  Is this a bug or is there something I can do to fix it?  Also is it fixed in SQL Server 2005?
MaintPlan.jpg
0
GordonAluminum
Asked:
GordonAluminum
1 Solution
 
RDWaibelCommented:
I had this issue in 2000 as well.  I just created a VB app to keep them clean.  I have not noticed this as an issue in 2005
0
 
k_murli_krishnaCommented:
DB Maint Plan - Remove old backup files older than
http://www.sqldev.org/sql-server-database-engine/db-maint-plan--remove-old-backup-files-older-than-85420.shtml
SQL Server 2000: Old .BAK files not deleting even though specified in maintenance plan
http://www.sqlnewsgroups.net/group/microsoft.public.sqlserver.server/topic6118.aspx
Maintenance back up plan not deleting prior backup
http://www.bigresource.com/Tracker/Track-ms_sql-IbT92pRa/


HOW TO DELETE OLD BACK UP FILES AND TRANSACTION LOGS IN SQL 2005
http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/cee571dd-1e13-49f9-9d41-adab0fa8f5e8
0
 
pnautaCommented:
I have noticed that this mechanism doesn't work well, especially not when there's a gap between dates of these files.

In SQL 2005 it was broke (worse than SQL2000 IMHO) until at least SP2.  There were huge bugs in the maintenance plan functionality, and it has been partially rewritten between RTM and SP2.  It is very difficult to troubleshoot these plans when they fail.  At least it offers to look at the T-SQL syntax and cut and paste it, so you could execute the statement and check whether it works.  It's so unreliable that Siemens has it's own mechanism for some healthcare and financial suite, called SDMF.  That works rather well.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now