http://sqlcat.com/sqlcat/b/technicalnotes/archive/2008/04/21/tuning-the-performance-of-backup-compression-in-sql-server-2008.aspx
And a cheeky query to help give you a guide on the size of your backup if it was compressed !
SELECT
b.database_name 'Database Name',
CONVERT (BIGINT, b.backup_size / 1048576 ) 'UnCompressed Backup Size (MB)',
CONVERT (BIGINT, b.compressed_backup_size / 1048576 ) 'Compressed Backup Size (MB)',
CONVERT (NUMERIC (20,2), (CONVERT (FLOAT, b.backup_size) /
CONVERT (FLOAT, b.compressed_backup_size))) 'Compression Ratio',
DATEDIFF (SECOND, b.backup_start_date, b.backup_finish_date) 'Backup Elapsed Time (sec)'
FROM
msdb.dbo.backupset b
WHERE
DATEDIFF (SECOND, b.backup_start_date, b.backup_finish_date) > 0
AND b.backup_size > 0
ORDER BY
b.backup_finish_date DESC
Table 1 shows the output of the above query after taking an uncompressed and a compressed backup.
Database Name | Uncompressed Backup Size (MB) | Compressed Backup Size (MB) | Compression Ratio | Backup Time (Seconds) | Comments |
BCTEST | 292705 | 95907 | 3.05 | 1705 | Compressed backup |
BCTEST | 292705 | 292705 | 1 | 3348 | Uncompressed backup |
1 comment:
This information is really very helpful. SQL server backup database with compression used to reduce database size and improve performance of I/O intensive workload,
Post a Comment