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

TIBConnection.CreateDB

Creates a database on disk

Declaration

Source position: ibconnection.pp line 101

public procedure TIBConnection.CreateDB; override;

Description

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

If set, the Params (specifically, PAGE_SIZE) and 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 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

Params

DropDB

TIBConnection

  

TIBConnection: Firebird/Interbase specific TSQLConnection


Documentation generated on: Feb 25 2013