yes,you`re right! add SQLDisconnect(hdbc); before SQLFreeHandle(SQL_HANDLE_DBC, hdbc); by the way,why not add "Close()" in "ODBCSession::~ODBCSession()"?
Report message to a moderator