[Overview][Constants][Types][Classes][Index] Reference for unit 'IBConnection' (#fcl)

TIBConnection.CreateDB

Creates a database on disk

Declaration

Source position: ibconnection.pp line 119

public procedure TIBConnection.CreateDB; override;

Description

Instructs the Interbase or Firebird database server to create a new database.

If set, the TSQLConnection.Params (specifically, PAGE_SIZE) and TSQLConnection.CharSet properties influence the database creation.

If creating a database using a client/server environment, the TIBConnection code will connect to the database server before trying to create the database. Therefore make sure the connection properties are already correctly set, e.g. TSQLConnection.HostName, TSQLConnection.UserName, TSQLConnection.Password.

If creating a database using Firebird embedded, make sure the embedded library is loaded, the TSQLConnection.HostName property is empty, and set the TSQLConnection.UserName to e.g. 'SYSDBA'. See TIBConnection: Firebird/Interbase specific TSQLConnection for details on loading the embedded database library.

See also

TSQLConnection.Params

TSQLConnection.DropDB

TIBConnection

  

TIBConnection: Firebird/Interbase specific TSQLConnection


Documentation generated on: Sep 28 2017