ERROR_STATE_UDF

Definition

This user-defined function (UDF) gets the error state regardless of how many times it is run, or where it is run within the scope of the CATCH block.

ERROR_STATE_UDF() 

Parameters

No input parameters.

Returns

Returns the string with the error state regardless of how many times it is run, or where it is run within the scope of the CATCH block.

Usage example

Input:

SELECT ERROR_STATE_UDF();

Output:

null -- No information set.

Last updated