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

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Monitoring all Database-Connections

Author  Topic 

gpc44
Starting Member

35 Posts

Posted - 2014-02-19 : 05:31:08
Hi,
i have do replace a sql-server 2005 with 2008/R2. We do not know which client have access to which database, as this has not been documented. Is there a way, for a period of time to monitor all connection activities?
-which User or IP have access to
-what database
-maybe other information like time, table, view, SP ...

Thank you
Regards
Nicole

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2014-02-20 : 01:45:26
You could regularly monitor the •sys.dm_exec_connections and sys.dm_exec_sessions , which list all connections and sessions respectively.
You could match this up to a list of database users and their roles - http://www.sqlserver-dba.com/2012/09/sql-server-find-sql-database-users-and-find-database-roles.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page
   

- Advertisement -