This topic contains an error codes table that provides possible SQLSTATE values that a driver returns for the SQLGetDiagRec function.
The SQLGetDiagRec and SQLGetDiagField return SQLSTATE values that conform to the X/Open (The Open Group) Data Management: Structured Query Language (SQL), Version 2 (3/95).