Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 determine backup size

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2004-11-01 : 08:17:16
david writes "How do I determine the size of the backup file (xxx.bak) before i do the backup? I would like to know whether my disk has enough free space to store the backup.

thanks. Urgent

d"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-11-01 : 08:20:30
About the closest you'll get is running sp_spaceused on the database you're backing up. The backup size will be approximately the difference between the database size and the unallocated space. These numbers won't be accurate though unless you've done a DBCC UPDATEUSAGE on the database, to ensure row and page counts are up to date. Even if they're completely accurate the backup size will still only be approximate.

You're better off finding or buying another drive that has plenty of free space so that this isn't an issue.
Go to Top of Page
   

- Advertisement -