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:

  1. Calls SQLDisconnect.

  2. 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.

  3. If there are no more connection handles on the current environment handle, it calls SQLFreeHandle with a HandleType of SQL_HANDLE_ENV or SQLFreeEnv.