Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us
Creating and Deleting Databases
Previous  Top  Next



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.

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Dec 21, 2024