<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Audit Tables on Matt Thornton</title>
    <link>https://matt-thornton.net/tags/audit-tables/</link>
    <description>Recent content in Audit Tables on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 28 Nov 2012 15:56:48 +0000</lastBuildDate><atom:link href="https://matt-thornton.net/tags/audit-tables/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Auto generate SQL audit tables and database triggers</title>
      <link>https://matt-thornton.net/tech/databases/auto-generate-sql-audit-tables-and-database-triggers/</link>
      <pubDate>Wed, 28 Nov 2012 15:56:48 +0000</pubDate>
      
      <guid>https://matt-thornton.net/tech/databases/auto-generate-sql-audit-tables-and-database-triggers/</guid>
      
        <description>&lt;p&gt;One approach to monitoring version history of items in SQL tables is to use an _Audit table version with database triggers. However, the creation and maintenance of the tables and triggers can be time consuming. &lt;a href=&#34;http://www.geekzilla.co.uk/ViewECBC0CC3-1C7E-4E7E-B243-F2F259A5C920.htm&#34;&gt;This post&lt;/a&gt; provided a nice script to automate the creation but unfortunately it suffered a few issues. In the comments, someone posted a sproc version of the script - but unfortunately this was also broken.&lt;/p&gt;
&lt;p&gt;So I have tidied it up and fixed the issues. My host doesn&amp;rsquo;t let me post SQL in these posts, so you can view the file &lt;a href=&#34;https://matt-thornton.net/images/posts/createtriggers.txt&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>