Skip to content
Home ยป how to caught error in sql

how to caught error 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.

 1,043 total views,  3 views today