@@CONNECTIONS
server statistics
What changes
- Input
- server activity counters
- Output or change
- integer counter
- Return type
- integer
Syntax at a glance
@@CONNECTIONS
Work example
Inspect total connection attempts since the instance started.
Take two readings over a measured interval and account for instance restarts.
Check your work Compare snapshots over time and account for restart rather than reading it as current connections.
Open Microsoft Learn for full syntax, permissions, and details for your version.