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)
 How to monitor events.

Author  Topic 

hdv212
Posting Yak Master

140 Posts

Posted - 2009-04-07 : 04:54:27
Hi
i want to monitor events. for example, what user working on which table, or list of users log (history of user operations).
how to do that ?
thanks

YellowBug
Aged Yak Warrior

616 Posts

Posted - 2009-04-07 : 07:59:22
Have a look at the Schema Changes History report - "provides a history of all committed DDL statetment executions within the Database recorded by the default trace."

Or there are some SQL audit/compliance tools you can look at.
Go to Top of Page

hdv212
Posting Yak Master

140 Posts

Posted - 2009-04-07 : 18:23:43
Thanks
but i need to detect DML statements on database, not DDL statements.
for this, i designed a table named 'PersonHistory', then each user apply DML statements, a record insert to this tables to register user operation, but i think sql server has a built in feature which solve this issue. do you agree with me ?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-04-07 : 18:51:12
There is no builtin feature. It is typically handled through custom triggers.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -