Logo 
Search:

SQL Server Articles

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

@@PACKET_ERRORS - PACKET_ERRORS Function

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

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

@@PACKET_ERRORS function returns the number of network packet errors that have occurred on SQL Server connections since SQL Server was last started.


Syntax of @@PACKET_ERRORS Function :

@@PACKET_ERRORS

Return type of an above function is an integer.




Examples of @@PACKET_ERRORS Function :

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

SELECT @@PACKET_ERRORS

Output
0

Above example returns 0 means no network packet error has been occurred on sql server connections since last started. 
  
Share: 


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

Sarita Patel
Sarita Patel author of @@PACKET_ERRORS - PACKET_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!