Skip to content

TSQLConnection.DropDB

Procedure to drop or remove a Database.

Declaration

Source position: sqldb.pp line 315

public 
procedure TSQLConnection.DropDB;  virtual;

Description

DropDB does the opposite of CreateDB. It removes the database from the server. The database must be connected before this command may be used. Whether or not this functionality is present depends on the type of the connection.

Errors

If the connection type does not support creating a database, then an EDatabaseError exception is raised. Other exceptions may be raised if the operation fails, e.g. when the user does not have the necessary access rights.

See also

Name Description
TSQLConnection.CreateDB Create a new Database on the server.