Creating databases
To create Absolute DB database file manually, you can use DBManager utility from Absolute DB installation set (...\AbsoluteDatabase\Ultils\Bin\DBManager.exe).
To create database from your application, use the CreateDatabase method of TABSDatabase component.
Example:
ABSDatabase1.DatabaseName := 'emp_db'; // unique name used further to identify db
ABSDatabase1.DatabaseFileName := 'c:\data\employees.abs';
if (not ABSDatabase1.Exists) then
ABSDatabase1.CreateDatabase;
Deleting databases
To delete Absolute DB database file from the application code, use TABSDatabase.DeleteDatabase method.
|
|