Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Understanding ODBC error messages

Error messages for ODBC calls can come from the ODBC driver, the database source, or the driver manager.

An error reported on an ODBC driver has the following format, where ODBC_component is the component in which the error occurred:

[vendor] [ODBC_component] message

If you get this type of error, check the last ODBC call that your application made for possible problems, or contact your ODBC application vendor.

An error that occurs in the data source includes the data source name in the following format, where ODBC_component is the component that received the error from the data source that is indicated:

[vendor] [ODBC_component] [data_source] message

If you get this type of error, you did something incorrectly with the database system. Check your database system documentation for more information or consult your database administrator. In this example, you would check your Oracle documentation.

The driver manager is a DLL that establishes connections with drivers, submits requests to drivers, and returns results to applications. An error that occurs in the driver manager has the following format:

[vendor] [ODBC DLL] message

To deal with this type of error, check the documentation for the driver manager.


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)