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 error code obtained by calling SQLError, specific for particular database (Sybase, Oracle, ...).