need T-SQL script to DELETE log backup files > 1 day old

  • Need a script which will auto DELETE log backup files > 1 day old. I realize a Maint Plan can do this but looking for a T-SQL script to accomplish the same thing.

    My Log backups reside in

    [font="Courier New"]

    NAME SIZE DATE MODIFIED

    F:\Backup\Logs\DB1_Log.bak 74k 2008.07.01

    F:\Backup\Logs\DB2_Log.bak 266k 2008.07.02

    F:\Backup\Logs\DB3_Log.bak 45k 2008.07.10

    [/font]

    Any help is greatly appreciated.

    BT
  • Delete files older than N-Days[/url]

    Your friendly High-Tech Janitor... 🙂

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply