April 11, 2014 at 5:20 pm
Trying to create an audit that goes to the application log. With a certain criteria, select, update, delete etc.. where like 'example'-- some criteria
is there any reference out there that could give me some examples?
Thanks in advance
April 12, 2014 at 6:34 am
Your best bet for something like this would be to use Extended Events. You can capture execution of queries and it has very good filtering so you can just get the ones you want.
By the way, you're posting a SQL Server 2012 question in the SQL Server 2014 forums. In this case the answer is identical between the versions, but in other cases, it might not be. I'd suggest trying to keep your questions in the corresponding forums just so you get better, more useful, answers.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 12, 2014 at 9:33 am
Thanks I didn't realize I posted in the wrong version. For the extended events we can't use because we have a 3rd party app that can only pull the information from the events.
Thanks again
April 14, 2014 at 9:22 am
D-SQL (4/11/2014)
Trying to create an audit that goes to the application log. With a certain criteria, select, update, delete etc.. where like 'example'-- some criteriais there any reference out there that could give me some examples?
Thanks in advance
Check these ..
http://technet.microsoft.com/en-us/library/cc280386.aspx -- Check the Target section
http://bradmcgehee.com/2010/03/30/an-introduction-to-sql-server-2008-audit/
--
SQLBuddy
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply