Microsoft Embedded SQL for C version 6.5 supports SQLSTATE codes, which return errors that are encountered at run time. SQLSTATE codes fall into two categories: those that must be generated locally by DB-Library or Embedded SQL, and those that are generated by the server. SQLSTATE codes always correspond to SQLCODE values. For more information about SQLSTATE messages, see Appendix E, "Messages."