SQL Notebook (logo)

ERROR_STATE Function

Returns the error state set by the last THROW statement.

Syntax

ERROR_STATE()

Return Value

The last error state. This value may be of any type (not just numeric).

Examples