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
 SQL Server Administration (2005)
 script

Author  Topic 

farrokhp
Starting Member

15 Posts

Posted - 2010-01-19 : 15:47:02
I need a script can be run on sql 2000 and 2005 both and filter out all activities on a specific database group by user logins. Any help appreciate

jackv
Master Smack Fu Yak Hacker

2179 Posts

Posted - 2010-01-20 : 07:51:04
the following will filter based on db_name and loginame , if you need omething slightly different or customised , let me know


SELECT * FROM master..sysprocesses
WHERE dbid = DB_ID('my_db_name')
where loginame = '<my_login_name>'

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

- Advertisement -