MyDAC

TMyServerControl.CreateDatabase Method

Creates a new database with the specified name.

Class

TMyServerControl

Syntax

procedure CreateDatabase(DatabaseName: string; IfNotExists: boolean = True; CharsetName: string = ''; CollationName: string = '');

Parameters
DatabaseName
Holds the name of the database that will be created.
IfNotExists
True, if a database with the specified name does not exist.
CharsetName
Holds the charset name.
CollationName
Holds the collation name.

Remarks

Call the CreateDatabase method to create a new database with the specified name.

If IfNotExists is True, then a database will be created only if it did not exist.

CharsetName, CollationName parameters specify the language parameters of the created database.

See Also

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback