A Quick Tutorial for Auditing DML Actions in a Database

I was recently asked to “capture” which account made a possible delete/truncate operation regularly against a table in a specific database. And I landed on this article through google and found it a very useful tutorial for setting up an audit trail to watch DML actions. The most important takeaway I got is that when you set up an audit spec which will trace actions from all possible logins, the “principal” column has to be set to “public” role because every login falls into this role.


About Nick Xu

Not a DBA anymore
This entry was posted in SQL Server and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s