Errors All (Diag/Misc Menu)

The Errors All function tool displays all pending errors. This tool performs the following actions:

  1. If the ODBC Menu Version is set to ODBC 3.0 or Both, it calls SQLGetDiagRec with a HandleType of SQL_HANDLE_STMT and Handle set to the current statement handle until SQLGetDiagRec returns SQL_NO_DATA. If the ODBC Menu Version is set to ODBC 2.x, it calls SQLError with the current hstmt until SQLError returns SQL_NO_DATA_FOUND.

  2. If the ODBC Menu Version is set to ODBC 3.0 or Both, it calls SQLGetDiagRec with a HandleType of SQL_HANDLE_DBC and Handle set to the current connection handle until SQLGetDiagRec returns SQL_NO_DATA. If the ODBC Menu Version is set to ODBC 2.x, it calls SQLError with the current hdbc until SQLError returns SQL_NO_DATA_FOUND.

  3. If the ODBC Menu Version is set to ODBC 3.0 or Both, it calls SQLGetDiagRec with a HandleType of SQL_HANDLE_ENV and Handle set to the current environment handle until SQLGetDiagRec returns SQL_NO_DATA. If the ODBC Menu Version is set to ODBC 2.x, it calls SQLError with the current henv until SQLError returns SQL_NO_DATA_FOUND.

  4. If the ODBC Menu Version is set to ODBC 3.0 or Both, it calls SQLGetDiagRec with a HandleType of SQL_HANDLE_DESC and Handle set to the current descriptor handle until SQLGetDiagRec returns SQL_NO_DATA.