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
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 active sessions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rajam.venkatesh58
Starting Member

2 Posts

Posted - 12/06/2012 :  10:06:41  Show Profile  Reply with Quote
Hi all,

is there any query to know active sessions that are running in a specific database for last 24 hours for 1 hour interval in sqlserver 2008 and that query shouldn't be burden to database.

Please answer.Thanks in advance.

Regards,
Venkat.

nigelrivett
Flowing Fount of Yak Knowledge

United Kingdom
3383 Posts

Posted - 12/06/2012 :  10:22:38  Show Profile  Visit nigelrivett's Homepage  Reply with Quote
A session (by which I assume you mean a connection?) connects to a server - it can then change between databases and have a default database but query several others in the same statement.

==========================================
Cursors are useful if you don't know sql.
SSIS can be used in a similar way.
Beer is not cold and it isn't fizzy.
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.16 seconds. Powered By: Snitz Forums 2000