If an error occurs during the execution of a database transaction, the return code (the parameter retCodeIdent_Int) is equal to the constant _ERR_TRANS_ERROR. Extended error information is contained in the variable _ERR_NR_TRANS_EX. If the error cause is in calling an ODBC interface function, the function %GetLastExtErrorCode returns a an error code obtained by calling SQLError, specific for the particular database (Sybase, Oracle, ...). The %GetLastExtErrorMsg function returns a text description of the error obtained by calling SQLError.