﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Roy  Ernest  / What, when and who? Auditing 101 - Part 2 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 19 Jun 2013 16:34:00 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Bummer!!!Change data capture is only available in the Enterprise, Developer, and Enterprise Evaluation editions.But great article nonetheless...:crying:</description><pubDate>Fri, 09 Mar 2012 04:58:09 GMT</pubDate><dc:creator>coetzee.jj</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Great article, thanks![b]qh[i][/i][/b]</description><pubDate>Tue, 21 Feb 2012 07:24:47 GMT</pubDate><dc:creator>quackhandle1975</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Yes, that will be the third part of it. SQL Audit. I have completed 50% of that article. I need couple of more weeks to finish it off and then I will be submitting for publishing.</description><pubDate>Fri, 03 Feb 2012 06:36:32 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Thank you for the articles!Are you going to cover auditing who reads which data, as well as changes?</description><pubDate>Thu, 02 Feb 2012 13:56:34 GMT</pubDate><dc:creator>Nadrek</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Thanks Jason, Thanks Wayne...</description><pubDate>Tue, 17 Jan 2012 05:29:46 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Nice article Roy. Thanks!</description><pubDate>Mon, 16 Jan 2012 14:27:19 GMT</pubDate><dc:creator>WayneS</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Nicely done Roy.</description><pubDate>Mon, 16 Jan 2012 12:50:08 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Hey Roy,You are right.  The current method we don't catch SSMS changes.   There also isn't a way to "Force" developers to supply a LogUserID.  In some cases when we troubleshoot the database will say it was "Roy" that made the change, but really it was a System User because the developer script didn't update the LogUserID column.  It gets messy when we delete rows from a table.  The first thing we have to do is update the LogUserID for the rows we delete.  Then we delete them. Looking forward to part 3.-Trevor</description><pubDate>Mon, 16 Jan 2012 12:32:56 GMT</pubDate><dc:creator>trevor.pinkney</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Hey Trevor, Half of the article is already done. That part covers the "who". I have to do some work on the article to cover writing to Event log. Once that is done, I will submit it for publication. Your present idea works when you have a controlled system like that. It just wont store the data if the update or select is done using SSMS. SQL Audit will be able to catch that.</description><pubDate>Mon, 16 Jan 2012 10:45:13 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Hey Roy,Looking forward to Part #3.  I really think 'Who' changed the data or 'What Process' is critical when it comes to logging.  I wanted to let you know how my company handles auditing 'WHO' in the hopes you may 'speak to it' in your next article. We use a table similar to "Product".  In the stored procedures that change data in this table we force developers to specify a LogUserID and a LogProcessID.   The LogUserID represents the person logged into the system that pressed the 'save button' or 'delete button' on the GUI or it may be a system user.  The LogProcessID is used to indicate if the change was triggered by a Web Application,  A Nightly 'Product Price Update' Job sql server job,  a windows service,  a web service etc. PRODUCT TABLE SCHEMA----------------------------------ProductIDDescriptionPriceLogUserIDAppProcessIDDateTimeModifiedDateTimeInsertedPRODUCT TABLE SCHEMA IN LOG DATABASE - A trigger inserts into a duplicate table------------------------------------------AuditIDActionProductIDDescriptionPriceLogUserIDAppProcessIDDateTimeModifiedDateTimeInsertedAnyway - I am really curious about the 'Who' in part #3 and hope you can cover this scenario in your article.</description><pubDate>Mon, 16 Jan 2012 09:23:11 GMT</pubDate><dc:creator>trevor.pinkney</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>I gave a recommendation that for CDC to use Snapshot isolation due to two reason.1. To make sure that there is no blocking caused when trying to get the LSN.2. To make sure that you get the right LSN.On a busy OLTP server, you are going to have high number of data changes  and that means that the Max LSN will be changing at a very rapid rate. You want to make sure that the MAX LSN is the same through out the query you are using to retrieve the changes. But it all depends on how you are retrieving the changes. There fore it is just a recommendation. It is not a must. I hope I was able to answer that question.</description><pubDate>Mon, 16 Jan 2012 08:06:39 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Nice article.  One question, you mention that it would be a good idea to have the database in Snapshot Isolation mode, but you don't really give any details as to why?  I'd really like to know why I should use snapshot isolation along with CDC.</description><pubDate>Mon, 16 Jan 2012 07:49:08 GMT</pubDate><dc:creator>  Jack Corbett</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Who can be done by SQL Audit... I am half way through writing that article. That is the 3rd part of this series.</description><pubDate>Mon, 16 Jan 2012 06:46:36 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item><item><title>RE: What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>CDC is fine for tracking DATA but what about WHO changed it? I can't even seem to write a join query to show the changes to the data by who?Back to audit triggers then, unless anyone can enlighten me.Thanks</description><pubDate>Mon, 16 Jan 2012 06:09:47 GMT</pubDate><dc:creator>lotusnotes</dc:creator></item><item><title>What, when and who? Auditing 101 - Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic1236252-1188-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/SQL+Server/77040/"&gt;What, when and who? Auditing 101 - Part 2&lt;/A&gt;[/B]</description><pubDate>Sun, 15 Jan 2012 02:30:13 GMT</pubDate><dc:creator>Roy Ernest</dc:creator></item></channel></rss>