@@TOTAL_ERRORS is the total number of errors. : TOTAL_ERRORS « System Settings « SQL Server / T-SQL Tutorial






4> Select @@TOTAL_ERRORS;
5> GO

-----------
          0

(1 rows affected)
1>








26.39.TOTAL_ERRORS
26.39.1.@@TOTAL_ERRORS is the total number of errors.