dbCloseConnection()
Function for closing a connection to a data source.
Synopsis
int dbCloseConnection(dbConnection connection);
Parameters
Parameter | Meaning |
---|---|
connection | Connection reference provided by dbOpenConnection() |
Return Value
The return value is an error code. 0 means that the operation has been performed successfully. For other values dbGetError() can be used to obtain detailed error information.
Errors
An error is returned if an invalid connection is passed.
Description
Every connection opened successfully with dbOpenConnection() must be closed again using dbCloseConnection(). Connection references released by dbCloseConnection() are subsequently invalid and must no longer be passed to other ADO functions (apart from dbOpenConnection().
Example
Assignment
ADO and Qt, Database functions
Availability
CTRL