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 2008 Forums
 Other SQL Server 2008 Topics
 Auditing - who/what/when/where of a record

Author  Topic 

MyHome
Starting Member

2 Posts

Posted - 2010-12-28 : 06:14:48
Hello,

I wonder if there's any way to get information about the who/what/when/where a record in a table for audit information.
I wanna track "records" changed by "users". How can I get this information?

Thank's a lot
Miguel

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-28 : 12:11:58
You can use the change data capture feature available in 2008. Or you can implement DML audit triggers.

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

Subscribe to my blog
Go to Top of Page

MyHome
Starting Member

2 Posts

Posted - 2010-12-29 : 01:54:06
As far as I know, I can't correlate CDC with user information provided by Audit data.
In CDC there's no way to get information about the user who made the record change. Again, for my understanding it's Audit record who maintain the user information.

Any ideas?
Thank you
Miguel
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2010-12-29 : 10:58:53
Then use DML triggers.

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

Subscribe to my blog
Go to Top of Page
   

- Advertisement -