Get DB size and all dbfiles

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
copymenad
Posts: 1
Joined: Sat 24 Jul 2010 12:09

Get DB size and all dbfiles

Post by copymenad » Sat 24 Jul 2010 12:18

Hello to all IBDac user,

I make my first project with ibdac and i have two questions.

I have a Firebird-DB (split in 3 files) , which is connected via remote-connection.

How can i get the size of the complete DB (in GB / MB) ?

How can i get all filenames of the splitted db ?

I hope you can help me !

copymenad

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 26 Jul 2010 09:19

To learn about the database files and their sizes, execute the following SQL query:

Code: Select all

SELECT 
 a.MON$DATABASE_NAME, 
 (a.MON$PAGE_SIZE * a.MON$PAGES)
-- /1024 for size in Kb
FROM 
 MON$DATABASE a

Post Reply