RAISERROR_UDF (VARCHAR, DOUBLE, DOUBLE, ARRAY)
Definition
This user-defined function (UDF) throws an exception with a specific message.
Parameters
MSG_TEXT
VARCHAR
The message text of the error message.
SEVERITY
DOUBLE
The severity number for the error.
STATE
DOUBLE
The state number for the error message.
PARAMS
ARRAY
The additional information of the error message.
Returns
Returns a varchar with an error message.
Usage example
Input:
Output:
Last updated