Tag: Delete Backup

  • T-SQL Script to Delete Older-Than-N-Days Backups in a Specific Folder

    I’ve noticed there are quite some hits on this post and the old format of the T-SQL code looked a bit messy, so I’ve done a makeover of the script on 2014-04-10. This script requires a not-too-strict security setting for sql server’s service account, because it will have to execute Windows batch commands to achieve…