Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Delete old backup files

By BrenBart,

A stored procedure and two functions that given a path, a date and a file extension will do one of the following:
-Delete all files of the supplied extension in that directory before a certain date.
-Delete everything before the last full backup.

I use this because disk space is tight and maintenance plans seem to delete old files after doing the backups, rebuilds and reorgs.

Total article views: 664 | Views in the last 30 days: 2
 
Related Articles
FORUM

Deleting Table

Deleting

FORUM

delete table

delete

FORUM

Delete

Delete Query

FORUM

Delete

Performance of Delete

FORUM

Deletion

Deletion of records

 
Contribute