The ErrorNo attribute provides the error number of the last operation. This attribute stores both client and database errors. It is set to ER_OK if no error occurred on the last operation. Descriptions of system constant values and their numeric equivalents are listed in
Error Codes (see
Error Codes).