views:

150

answers:

2

Is there a way to know the size of a database full backup file before we actually do the backup? I did some analyses and figured sp_spaceused could give a close figure but thats not all, there seem(s) to be one/more factors other than the used space that go into determining the size?

Has anyone been down this path before? Any ideas?

+1  A: 

It's pretty much the size of the mdf and ldf files.

ck
This isn't correct since data files have free space that is not backed up. You can test this by creating a 4GB database and then doing a backup. The backup will be nowhere near 4GB in size.
Jonathan Kehayias
+1  A: 

sp_spaceused should be pretty close if you look at the reserved space.

Estimating the Size of your Database Backups

Paul Randal blogged recently about how to know how large your TLOG backup might be:

How much data will the next log backup include

A combination of the two values, seems to be really close to the actual backup size in some brief testing.

Jonathan Kehayias
thank you, I have reached thus far. Is it possible to get any further?
Gnana
In retesting this, the numbers are only a few KB off in size from the actual backup that is taken I don't know how much closer to accurate you are expecting to get?
Jonathan Kehayias