[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Create a new Database on the server
Source position: sqldb.pp line 289
public procedure TSQLConnection.CreateDB; virtual; |
CreateDB will create a new database on the server. Whether or not this functionality is present depends on the type of the connection. The name for the new database is taken from the TSQLConnection.DatabaseName property, the user credentials are taken from the TSQLConnection.UserName and TSQLConnection.Password properties.
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.
|
Procedure to drop or remove a Database |