Xbasic
SQL::ConnectionCreateDatabase Method
Syntax
Result_Flag as L = CreateDatabase(Database as C)
Arguments
- DatabaseCharacter
The path and name of the new database.
Returns
- Result_FlagLogical
TRUE (.T.) if the operation was successful; otherwise FALSE (.F.).
Description
The CreateDatabase() method creates a new database. The contents of the database string are database specific
Discussion
The CreateDatabase() method creates a new database. The contents of the database string are database specific
Example
dim conn as SQL::Connection dim connString as C connString = "{A5API='Access', FileName='c:\program files\a5v8\mdbfiles\alphasports.mdb'}" if .not. conn.open(connString) ui_msg_box("Error", conn.CallResult.text) end end if if .not. conn.CreateDatabase("c:\Writers.mdb") ui_msg_box("Error", conn.CallResult.text) end if conn.close()
See Also