SQL Server/T-SQL Tutorial/System Settings/TOTAL ERRORS
@@TOTAL_ERRORS is the total number of errors.
4> Select @@TOTAL_ERRORS;
5> GO
-----------
0
(1 rows affected)
1>
4> Select @@TOTAL_ERRORS;
5> GO
-----------
0
(1 rows affected)
1>