The Salesforce driver reports errors to the application by returning SQL_ERROR to the failing ODBC API call. The application can then call SQLGetDiagRec to obtain the error details which consist of the following information:
Description of the probable cause of the error, prefixed by the component that generated the error