db_stop_database function

Stop a database.

Syntax
unsigned int db_stop_database(
SQLCA * sqlca,
char * parms 
);
Parameters

sqlca   A pointer to a SQLCA structure.

parms   A null-terminated string containing a semicolon-delimited list of parameter settings, each of the form KEYWORD=value. Typically, only a database file name is needed. For example,

"DBF=c:\\db\\mydatabase.db"
Returns
  • TRUE if there were no errors.

Remarks

This function is not commonly needed, as UltraLite automatically stops the database when all connections are closed. However, this function may be useful when developing applications that combine embedded SQL and the C++ component.

This function does not stop a database that has existing connections.

See also