Xbasic
SQL::ConnectionDropTable Method
Syntax
Result_Flag as L = DropTable(SQL::TableInfo)
Arguments
- TableInfoSQL::TableInfo
A SQL::TableInfo object to define TableName.
Returns
- Result_FlagLogical
TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).
Description
Drop a table from the currently connected database.
Discussion
The DropTable()removes the named table from the currently connected database.
Example
dim conn as SQL::Connection dim cs as C dim ti as SQL::TableInfo ti.name = "CustomerB" cs = "{A5API=Access,FileName='C:\Program Files\A5V8\MDBFiles\Alphasports.mdb',UserName='Admin'}" if .not. conn.open(cs) then ui_msg_box("Error", conn.CallResult.text) end end if if .not. conn.DropTable(ti) then ui_msg_box("Error", conn.CallResult.text) end if conn.close()
See Also