SQL Server/T-SQL Tutorial/System Settings/IDLE
@@IDLE Displays the total idle time of the SQL Server instance in milliseconds, since the instance was last
started.
3>
4> SELECT "IDLE", @@IDLE
5> GO
---- -----------
IDLE 4882969
(1 rows affected)