Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » System Statistical Functions RSS Feeds

@@IDLE - IDLE Function

Posted By: Sarita Patel     Category: SQL Server     Views: 1475

This article explains about @@IDLE function in sql server with examples.

@@IDLE function returns the time in milliseconds that SQL Server has been idle since last started.



Syntax of @@IDLE Function :

@@IDLE

Return type of an above function is an integer.




Examples of @@IDLE Function :

Example 1 : Use of @@IDLE function in select clause 

SELECT @@IDLE

Output
778089

Above example returns 778089 milliseconds sql server has been idle.
  
Share: 


Didn't find what you were looking for? Find more on @@IDLE - IDLE Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of @@IDLE - IDLE Function is from United States.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!