SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 How to know the SQL Server IDLE TIME.
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

phaniprasad18
Starting Member

India
3 Posts

Posted - 06/18/2013 :  01:30:24  Show Profile  Reply with Quote
Hi,

I am Phani, beginner to SQL Server. I would like to know the IDLE time of SQL SERVER (If there are no hits or no active sessions from past 30 mins, consider it as IDLE TIME) without logging in.

Could you please tell me any script (Batch or Power Shell or VB) or other ways to find out.

Thanks in advance.

Regards,
Phani T

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 06/18/2013 :  02:28:35  Show Profile  Reply with Quote
http://exacthelp.blogspot.com/2012/04/sql-script-to-get-cpu-idle-time-in-sql.html

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

phaniprasad18
Starting Member

India
3 Posts

Posted - 06/19/2013 :  01:28:52  Show Profile  Reply with Quote
Hi Visakh,
Thanks a lot, but I need to know the SQL Server IDLE time without logging into SQL, either it should be any script or any other software.

Could you please tell suggest anyone of them.

Regards,
Phani T.

Phani T
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 06/19/2013 :  01:37:29  Show Profile  Reply with Quote
why not automate it by menas of sql agent job and make it log the results onto some file or a report so that you can check it without even logging to sql server?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

ahmeds08
Aged Yak Warrior

India
625 Posts

Posted - 06/19/2013 :  12:34:29  Show Profile  Send ahmeds08 a Yahoo! Message  Reply with Quote
This might help you.
http://www.brentozar.com/archive/2006/12/dba-101-using-perfmon-for-sql-performance-tuning/

mohammad.javeed.ahmed@gmail.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000