Mikhail T.
2006-08-17 20:59:53 UTC
Hello!
In order to schedule the dumps efficiently I'm trying to estimate their
sizes. I assume, they will be about as large as the amount of space the
databases _use_.
How can obtain this information with reasonable accuracy (+/- 10%)? The
following query seems to work sometimes, but is woefully off at other times
(producing NEGATIVE results on occasion):
select name, sum(size - unreservedpgs) from sysdatabases,\
sysusages where sysusages.dbid = sysdatabases.dbid group by name
What's the right way to do it? Thanks!
-mi
In order to schedule the dumps efficiently I'm trying to estimate their
sizes. I assume, they will be about as large as the amount of space the
databases _use_.
How can obtain this information with reasonable accuracy (+/- 10%)? The
following query seems to work sometimes, but is woefully off at other times
(producing NEGATIVE results on occasion):
select name, sum(size - unreservedpgs) from sysdatabases,\
sysusages where sysusages.dbid = sysdatabases.dbid group by name
What's the right way to do it? Thanks!
-mi
--
Sybase! Release the OpenClient's source -- under any license...
Sybase! Release the OpenClient's source -- under any license...