[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'sqldb' (#fcl)

TSQLConnection.CreateDB

Create a new Database on the server

Declaration

Source position: sqldb.pp line 244

public procedure TSQLConnection.CreateDB; virtual;

Description

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.

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

TSQLConnection.DropDB

  

Procedure to drop or remove a Database


Documentation generated on: Nov 14 2015