Full Disconnect (Conn/Connect Menu)
The Full Disconnect function tool completely disconnects from the data source on the current ConnectionHandle. This tool performs the following actions:
-
Calls SQLDisconnect.
-
If the ODBC Menu Version is set to ODBC 3.0 or Both, it calls SQLFreeHandle with a HandleType of SQL_HANDLE_DBC. If the ODBC Menu Version is set to ODBC 2.x, it calls SQLFreeConnect.
-
If there are no more connection handles on the current environment handle, it calls SQLFreeHandle with a HandleType of SQL_HANDLE_ENV or SQLFreeEnv.