SQL Notebook (logo)

ERROR_NUMBER Function

Returns the error number set by the last THROW statement.

Syntax

ERROR_NUMBER()

Return Value

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

Examples