Need to know backup size of my database
deepak03
Posts: 7
Hi,
I am using red-gate on my n number of servers, i want to know the compress backup size of my database using some command in SQL Query analyser. I need to use it in few of my SQL jobs to monitor disk space on my server. Can you help me in that?
Thanks,
I am using red-gate on my n number of servers, i want to know the compress backup size of my database using some command in SQL Query analyser. I need to use it in few of my SQL jobs to monitor disk space on my server. Can you help me in that?
Thanks,
Comments
The tables you might want to use are:
- backuphistory
Will provide you details on the database backed up, and total backup size
- backupfiles
Provides file size for each individual file, useful if you split your backup files across different drives.
You can use the 'sqbdata' extended stored procedure to access data in the SQL Compact database e.g.
If you need to link to the standard SQL Server backup history tables, use the backup_set_uuid value in backup history to the msdb..backupset table.
SQL Backup Consultant Developer
Associate, Yohz Software
Beyond compression - SQL Backup goodies under the hood, updated for version 8
Even better if you run this across the Central Management Servers (CMS) to grab a summary of ALL the servers in CMS
DBA, MCITP