@@CPU_BUSY
server statistics
What changes
- Input
- server activity counters
- Output or change
- integer counter
- Return type
- integer
Syntax at a glance
@@CPU_BUSY
Work example
Inspect cumulative CPU time spent by the SQL Server process.
Take two readings over a measured interval and account for instance restarts.
Check your work Calculate a rate from interval snapshots and compare with operating-system measures.
Open Microsoft Learn for full syntax, permissions, and details for your version.