Obtaining SQLSTATE codes and error messages

SQLSTATE can contain a list of one or more error and/or warning messages. The messages can be informational, warning, severe, or fatal messages. Open Client Client-Library and Open Server Server Library generate the majority of SQLSTATE messages. See the appropriate documentation for a complete list of SQLSTATE codes and error messages.

See Appendix A, “Precompiler Warning and Error Messages,” for the table of SQLSTATE messages that the precompiler can generate.