Returns the most recent server error message.

Syntax

SQLMESSAGE( )

Description

Use SQLMESSAGE( ) to determine the error message of the last server error. To learn the error code, use SQLERROR( ).