Skip to content
Home ยป error function in sql

error function in sql

SQL Server @@ERROR

SQL Server @@ERROR is a global variable that returns an error number if the last statement encountered an error but we have to trace it within just after the next line where the actual error occurred, otherwise, it will reset to 0.

 670 total views