[Overview][Constants][Types][Classes][Index] |
Deletes a database from disk
Source position: ibconnection.pp line 129
public procedure TIBConnection.DropDB; override; |
DropDB instructs the Interbase/Firebird database server to delete the database that is specified in the TIBConnection.
In a client/server environment, the TIBConnection code will connect to the database server before telling it to drop the database. Therefore make sure the connection properties are already correctly set, e.g. TSQLConnection.HostName, TSQLConnection.UserName, TSQLConnection.Password.
When using Firebird embedded, make sure the embedded connection 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 more details on loading the embedded library.