Creates a database and opens a connection to the database as specified by access_parms.
Connection createDatabase( String access_parms , PODSArray *coll_bytes, String create_parms )
access_parms Parameters for connecting to the database. access_parms is used to specify connection parameters (including the database file name and location) and to open the connection.
The collation file must be included in the main html file before the database logic. The byte array variable is defined in the coll_XXXXX.js file.
create_parms Parameters for creating the database. Parameter keywords are case-insensitive, and most values are case-sensitive. create_parms is used to specify parameters that can be specified only at database creation.
No return value.
If the database already exists, a SQLE_DATABASE_NOT_CREATED exception is thrown.
Only one database may be active at a given time. Attempts to open a connection to a database result in an error if there are connections open to a different database.
|Discuss this page in DocCommentXchange.
Send feedback about this page using email.
|Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1|