Subject | Re: [firebird-support] Any API to get the database size? |
---|---|
Author | Nando Dessena |
Post date | 2007-11-08T09:33:25Z |
Yusuf,
would you please create a new message when opening a new thread,
instead of replying to a different unrelated thread? Thanks.
Y> Is there any way to get the database size from any client?
There's a isc_database_info call for that; it should be surfaced by
whatever API wrapper you are using. You should be able to get the page
size (isc_info_page_size) and the number of allocated pages
(isc_info_allocation) and multiply them to get the database size in
bytes.
Ciao
--
Nando Dessena
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================
would you please create a new message when opening a new thread,
instead of replying to a different unrelated thread? Thanks.
Y> Is there any way to get the database size from any client?
There's a isc_database_info call for that; it should be surfaced by
whatever API wrapper you are using. You should be able to get the page
size (isc_info_page_size) and the number of allocated pages
(isc_info_allocation) and multiply them to get the database size in
bytes.
Ciao
--
Nando Dessena
======================================================
I support Firebird, I am a Firebird Foundation member!
Join today at http://www.firebirdsql.org/ff/foundation
======================================================