Extract database structure
Extract database structure
Hi all,
Can I extract the database structure using the Devart VCL components for Firebird? How to do this?
Best Regards.
Can I extract the database structure using the Devart VCL components for Firebird? How to do this?
Best Regards.
You can view an example of the TIBCMetaData component usage here: http://www.devart.com/forums/viewtopic.php?t=18896
To retrieve another information of the database structure, please, look at the MetaDataKind property of the TIBCMetaData component. It's used to specify which kind of metainformation to show. If you want to see all fields available in the TIBCMetaData component, you can link it to the TDataSource and TDBGrid components.
To retrieve another information of the database structure, please, look at the MetaDataKind property of the TIBCMetaData component. It's used to specify which kind of metainformation to show. If you want to see all fields available in the TIBCMetaData component, you can link it to the TDataSource and TDBGrid components.
You can use the TIBCBackupService and TIBCRestoreService services to transfer your database.
Here an example of backing up of the database:
And here an example of restoring of the database:
For more information about this services, please, read IBDAC Reference Manual.
Here an example of backing up of the database:
Code: Select all
IBCBackupService.Database := 'path to database';
IBCBackupService.BackupFile.Add('backup filename');
IBCBackupService.Options := IBCBackupService.Options + [boMetadataOnly]; // this option you should use if you want to transfer just a structure of your database
IBCBackupService.Attach;
IBCBackupService.ServiceStart;
Code: Select all
IBCRestoreService.Database.Add('path to database');
IBCRestoreService.BackupFile.Add('backup filename');
IBCRestoreService.Attach;
IBCRestoreService.ServiceStart;