SQL Server/T-SQL/System/TOTAL ERRORS
@@TOTAL_ERRORS Displays read/write errors encountered since the SQL Server instance was last started.
<source lang="sql">
3> 4> SELECT "TotalErrors", @@TOTAL_ERRORS 5> GO
-----------
TotalErrors 0 (1 rows affected)
</source>