Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 active sessions
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

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.


Flowing Fount of Yak Knowledge

United Kingdom
3385 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  
 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.03 seconds. Powered By: Snitz Forums 2000