sql server - Estimate size of restored DB -
the amount of free space on machine limited, , i'd know how many dbs can fit on before restoring them.
so given .bak file, how can estimate how big restored database on sql server be?
this output:
restore filelistonly disk = 'c:\path\file.bak';
has size
column (in bytes). can perform math extrapolate there, example let's results in column are:
3211264 802816
these in bytes, , expressed in kb (at least how windows explorer exposes it) be:
3211264 + 802816) / 1024 = 3,136 kb
and in mb be:
3211264 + 802816) / 1024 / 1024.0 = 3.0625 mb
you may want sum
of whole column, or may want restore ... move
, place different files on different drives if have ability so, in case you'll want consider different files separately.
Comments
Post a Comment