RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TIBDataBase.CreateDatabase Method

Creates a database using Params.

Pascal
procedure CreateDatabase;
C++
__fastcall CreateDatabase();

Call CreateDatabase to create a database using Params as the rest of the CREATE DATABASE command. 

For example, if you wanted to create a local InterBase database, you could do the following:

  1. Set the database name to the drive, path, and filename of the database file.
  2. Set Params to the parameter for the CREATE DATABASE statement: USER "SYSDBA" PASSWORD "masterkey" PAGE_SIZE 4096
  3. Set the SQLDialect value.
  4. Call the CreateDatabase method.

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!