MyDAC

TMyServerControl.DropDatabase Method

Drops the specified database.

Class

TMyServerControl

Syntax

procedure DropDatabase(DatabaseName: string; IfExists: boolean = True);

Parameters
DatabaseName
Holds the database name.
IfExists
If a database with the specified name does not exist, an exception will be generated.

Remarks

Call the DropDatabase method to drop the specified database.

IfExists parameter is used to raise an error message if the specified database doesn't exist.

Note: Use this function very carefully!

See Also

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