SQL_ERROR_MESSAGE2¶

Applies to: ORAFlex SQLFlex MYSQLFlex PGFlex DB2Flex

This command is used to get the last error message used for the specified server. This can be useful once a transaction has already been completed and any error messages need to be retrieved.

Syntax

SQL_ERROR_MESSAGE2 of {server} to {variable}

Parameter

Description

server

Name of the server

variable

Variable to hold the error message

Example

SQL_ERROR_MESSAGE2 of "localhost" to sError