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

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 script to retrieve connect info over time
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Aged Yak Warrior

808 Posts

Posted - 10/15/2012 :  12:39:42  Show Profile  Reply with Quote

I am on sql server 2008 R2 enterprises.

Is there any system built-in tables/views that I can query against to retrieve user connection count over time?

I can use sp_who2 to sum the SPID at any given time. But if I want to know, say last 3 days from 7 AM to 6 PM total connection count on the hour, all I can think of is to build my own table and write into it using agent/job.

Am I going after this the hard way?


Edited by - Hommer on 10/15/2012 15:28:33

The Chadinator

1974 Posts

Posted - 10/15/2012 :  16:13:58  Show Profile  Visit chadmat's Homepage  Reply with Quote
You could use auditing.

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