Closes a SQL connection between the DB connection object specified by the function's parameter and a database. The DB connection object is not deleted from the memory until calling SQLDispose function.
This function is a blocking function and should not be called from a foreground task.
Syntax
SQLClose(hSQL)
hSQL:
The handle to the DB connection object, returned from the SQLCreate() function. The handle identifies the DB connection object where details of the associated SQL connection are stored.
Return Value
0 if success, otherwise an error code (For details call the SQLErrMsg() function).
Related Functions
SQLCreate, SQLOpen, SQLClose, SQLDispose, SQLConnect, SQLDisconnect, SQLInfo
Example
See SQLCreate.
See Also
Published June 2018