Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » System Statistical Functions RSS Feeds

@@TOTAL_ERRORS - TOTAL_ERRORS Function

Posted By: Sarita Patel     Category: SQL Server     Views: 1545

This article explains about @@TOTAL_ERRORS function in sql server with examples.

@@TOTAL_ERRORS function returns the number of disk read/write errors encountered by SQL Server since last started.



Syntax of @TOTAL_ERRORS Function :

@@TOTAL_ERRORS

Return type of @@TOTAL_ERRORS function is an integer.




Examples of @@TOTAL_ERRORS Function :

Example 1 : Use of @@TOTAL_ERRORS function in select clause 

SELECT @@TOTAL_ERRORS

Output
0

Above example returns 0 errors occurred in sql server since last started.  
  
Share: 


Didn't find what you were looking for? Find more on @@TOTAL_ERRORS - TOTAL_ERRORS Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of @@TOTAL_ERRORS - TOTAL_ERRORS Function is from United States.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!