I wanted to reduce the size of my log file in SQL SERVER 2005, which grown to 16 gigs, so I created a backup and used the dbcc shrinkfile command to shrink it. All that is set. Now what should I do with the backup file that is created – should I delete it? What impact will deletion have?
Share
Deleting the file will mean you will not be able to do point-in-time restoration – you will only be able to restore to the last database backup you made.
If point-in-time restores are unimportant to you, you can safely delete the backup – otherwise store it somewhere safe (like a tape, or other removable storage).
If you’re not using anything that requires a transaction log (e.g. database mirroring) you could also consider switching the database into “simple recovery mode” which avoids transaction log use anyway.