@@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
Output
Above example returns 0 means no network packet error has been occurred on sql server connections since last started.