| title | @@PACKET_ERRORS (Transact-SQL) | |||||
|---|---|---|---|---|---|---|
| description | @@PACKET_ERRORS (Transact-SQL) | |||||
| author | VanMSFT | |||||
| ms.author | vanto | |||||
| ms.date | 09/18/2017 | |||||
| ms.service | sql | |||||
| ms.subservice | t-sql | |||||
| ms.topic | reference | |||||
| f1_keywords |
|
|||||
| helpviewer_keywords |
|
|||||
| dev_langs |
|
[!INCLUDE SQL Server Azure SQL Managed Instance]
Returns the number of network packet errors that have occurred on [!INCLUDEssNoVersion] connections since [!INCLUDEssNoVersion] was last started.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
@@PACKET_ERRORS
integer
To display a report containing several [!INCLUDEssNoVersion] statistics, including packet errors, run sp_monitor.
The following example shows using @@PACKET_ERRORS.
SELECT @@PACKET_ERRORS AS 'Packet Errors'; Here is a sample result set.
Packet Errors
-------------
0
@@PACK_RECEIVED (Transact-SQL)
@@PACK_SENT (Transact-SQL)
sp_monitor (Transact-SQL)
System Statistical Functions (Transact-SQL)