| title | @@PACKET_ERRORS (Transact-SQL) | Microsoft Docs | |||||
|---|---|---|---|---|---|---|
| ms.custom | ||||||
| ms.date | 09/18/2017 | |||||
| ms.prod | sql | |||||
| ms.prod_service | sql-database | |||||
| ms.service | ||||||
| ms.component | t-sql|functions | |||||
| ms.reviewer | ||||||
| ms.suite | sql | |||||
| ms.technology |
|
|||||
| ms.tgt_pltfrm | ||||||
| ms.topic | language-reference | |||||
| f1_keywords |
|
|||||
| dev_langs |
|
|||||
| helpviewer_keywords |
|
|||||
| ms.assetid | f7da1b80-5cbe-42fa-be71-40c6af16383a | |||||
| caps.latest.revision | 31 | |||||
| author | edmacauley | |||||
| ms.author | edmaca | |||||
| manager | craigg | |||||
| ms.workload | Inactive |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]
Returns the number of network packet errors that have occurred on [!INCLUDEssNoVersion] connections since [!INCLUDEssNoVersion] was last started.
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)