Xbasic
SQL::ConnectionDropDatabase Method
Syntax
Result_Flag as L = DropDatabase(database as C)
Arguments
- databaseCharacter
The name of the database.
Returns
- Result_FlagLogical
TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).
Description
Remove a database.
Discussion
The DropDatabase() method removes a database.
Example
dim conn as SQL::Connection if .not. conn.open("{A5API=Access, FileName='C:\Databases\Northwind\northwind.mdb', UserName='Admin'}") then ui_msg_box("Error", conn.CallResult.text) end end if if .not. conn.DropDatabase("Northwinds") then ui_msg_box("Error", conn.CallResult.text) end if
See Also