Diagnostic Handling Rules

The following rules govern diagnostic handling in SQLGetDiagRec and SQLGetDiagField.

All ODBC components:

The ODBC component that directly interfaces a data source:

Any ODBC component that generates an error or warning independent of the data source:

The ODBC component that interfaces with the Driver Manager:

One ODBC component other than the Driver Manager: