MDAC 2.5 SDK - ODBC Programmer's Reference
Chapter 15: Diagnostics


 

Diagnostic Handling Rules

The following rules govern diagnostic handling in SQLGetDiagRec and SQLGetDiagField.

For all ODBC components:

For the ODBC component that directly interfaces a data source:

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

For the ODBC component that interfaces with the Driver Manager:

For one ODBC component other than the Driver Manager: