Microsoft
Software
Hardware
Network
Question : SQL 2005 - deleting zipped backup files
IN SQL 2005 we currently zip our nightly full backup due to space constraints, however the delete file task in 2005 doesn't work. Digging around this is because it tries to analyze the header (and the bk file is now zipped) so doesn't know its a SQL backup file.
In 2000 I wrote a stored proc that analyzed the msdb database and found the relevant backup files then ran a xp_cmd to remove the files with azip extension.....so my question is:
What tables do I interrogate to find a list of backup files in SQL 2005?
Cheers
Answer : SQL 2005 - deleting zipped backup files
You can use msdb.dbo.backupmediafamily
(physical_device_name column contains the paths to the backup files) and msdb.dbo.backupset (here you can find information about which databases were backed up) tables to get the information about your backups.
Random Solutions
Customized Page after Login
How to setup NAC Agent to be running at system startup and as a service, not as an application?
Search not returning results
relaying denied IP name lookup failed
Computer takes 30 minutes to boot; after (I think) an automatic update. I had this problem no another computer a few years ago but I forgot the fix.
Return code or error message returned by Sybase when rollback trigger with raiserror is executed
DNS issues on Mac Server
Export Dial-up Connections & Import to another computer
how to recover exchange mailboxes from priv1.edb file
hi,when in trying to remove the Math Type Add In the tad in gray