SQL @@IDLE

SQL @@IDLE Statistical Function returns the total idle time of this SQL Server since it last began. Syntax behind this is @@IDLE is @@IDLE SQL @@IDLE Example Below code snippet shows the total idle time since this SQL Server last started. SELECT @@IDLE AS ‘Idle Time’ You can use @@TIMETICKS to get the idle time in microseconds. … Read more