SQL Flow Field Guide

@@PACKET_ERRORS

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

server statistics

What changes

Input
server activity counters
Output or change
integer counter
Return type
integer

Syntax at a glance

@@PACKET_ERRORS

Work example

Inspect cumulative network packet errors reported by SQL Server.

Take two readings over a measured interval and account for instance restarts.

Check your work Compare snapshots and correlate with network evidence before assigning a cause.

Open Microsoft Learn for full syntax, permissions, and details for your version.