Problem
Many clients are using custom stored procedures or third party tools to backup databases in production environments instead of using database maintenance plans. One of the things that you need to do is to maintain the number of backup files that exist on disk, so you don’t run out of disk space. There are several techniques for deleting old files, but in this tip I show how this can be done using PowerShell.
Solution
Filed under: SQL Server, SQL Server 2008, SQL Server 2008 R2, SQL Server 2011 (Denali) Tagged: Backup, Database, Disk Management, file system object, Microsoft, Microsoft SQL Server, Microsoft Windows, Window PowerShell Image may be NSFW.
Clik here to view.

Clik here to view.
