Applications provide users with all the error information available through SQLError: the ODBC SQLSTATE, the native error code, the error text, and the source of the error.
The application may parse the error text to separate the text from the information identifying the source of the error. It is the application’s responsibility to take appropriate action based on the error or provide the user with a choice of actions.
The ODBC interface provides functions that terminate statements, transactions, and connections, and free statement, connection, and environment handles.