 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How do I check for changes in a database on insert / update?</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/</link>
	<description></description>
	<lastBuildDate>Tue, 21 May 2013 03:16:34 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: onilke</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/#comment-48322</link>
		<dc:creator>onilke</dc:creator>
		<pubDate>Fri, 17 Dec 2004 04:55:23 +0000</pubDate>
		<guid isPermaLink="false">#comment-48322</guid>
		<description><![CDATA[It depends on to what use you will put the fact of &quot;changed&quot;, and if any or specific change is interesting.

Each of the databases would need a way to make the change visible. 

The before mentioned update fields are only interesting if your program checking for change is able to determinate that this is actually a new date or username. These fields never tell their former values, unless you keep an additional table of every transaction (you might need huge space for this!).

The simplest way I can think of, is to supply every interesting table with the boolean field &quot;Changed&quot;, being set to true with each insert or update AND reset to false by the program checking for change, after the fact of change is reported.
]]></description>
		<content:encoded><![CDATA[<p>It depends on to what use you will put the fact of &#8220;changed&#8221;, and if any or specific change is interesting.</p>
<p>Each of the databases would need a way to make the change visible. </p>
<p>The before mentioned update fields are only interesting if your program checking for change is able to determinate that this is actually a new date or username. These fields never tell their former values, unless you keep an additional table of every transaction (you might need huge space for this!).</p>
<p>The simplest way I can think of, is to supply every interesting table with the boolean field &#8220;Changed&#8221;, being set to true with each insert or update AND reset to false by the program checking for change, after the fact of change is reported.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: howard2nd</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/#comment-48323</link>
		<dc:creator>howard2nd</dc:creator>
		<pubDate>Fri, 05 Nov 2004 13:56:39 +0000</pubDate>
		<guid isPermaLink="false">#comment-48323</guid>
		<description><![CDATA[In &#039;Access&#039; you have to do your own &quot;transaction&quot; tracking.
SQL Server can do tracking for you. In either case the &quot;Update&quot; fields are best practice for table design.]]></description>
		<content:encoded><![CDATA[<p>In &#8216;Access&#8217; you have to do your own &#8220;transaction&#8221; tracking.<br />
SQL Server can do tracking for you. In either case the &#8220;Update&#8221; fields are best practice for table design.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aussiemate</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/#comment-48324</link>
		<dc:creator>aussiemate</dc:creator>
		<pubDate>Tue, 02 Nov 2004 18:21:43 +0000</pubDate>
		<guid isPermaLink="false">#comment-48324</guid>
		<description><![CDATA[Most definitely, the field option, addition of fields; &#039;lastUpdated&#039; and &#039;updatedBy&#039;; should be made a part of every p/t or full timer programmers approach. Having this structure in place allows laymen to query database tables, giving a much sought, management the ability to gain their own stats, as well as the usual monthly reporting.

remember KISS!

Mike]]></description>
		<content:encoded><![CDATA[<p>Most definitely, the field option, addition of fields; &#8216;lastUpdated&#8217; and &#8216;updatedBy&#8217;; should be made a part of every p/t or full timer programmers approach. Having this structure in place allows laymen to query database tables, giving a much sought, management the ability to gain their own stats, as well as the usual monthly reporting.</p>
<p>remember KISS!</p>
<p>Mike</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aussiemate</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/#comment-48325</link>
		<dc:creator>aussiemate</dc:creator>
		<pubDate>Tue, 02 Nov 2004 18:21:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-48325</guid>
		<description><![CDATA[Most definitely, the field option, addition of fields; &#039;lastUpdated&#039; and &#039;updatedBy&#039;; should be made a part of every p/t or full timer programmers approach. Having this structure in place allows laymen to query database tables, giving a much sought, management the ability to gain their own stats, as well as the usual monthly reporting.

remember KISS!]]></description>
		<content:encoded><![CDATA[<p>Most definitely, the field option, addition of fields; &#8216;lastUpdated&#8217; and &#8216;updatedBy&#8217;; should be made a part of every p/t or full timer programmers approach. Having this structure in place allows laymen to query database tables, giving a much sought, management the ability to gain their own stats, as well as the usual monthly reporting.</p>
<p>remember KISS!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: stanton</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/#comment-48326</link>
		<dc:creator>stanton</dc:creator>
		<pubDate>Thu, 28 Oct 2004 08:01:18 +0000</pubDate>
		<guid isPermaLink="false">#comment-48326</guid>
		<description><![CDATA[I design all my tables with an Updated by field and an Updated date field.  This way I can tell when the last time a record in any table was updated.  This also helps with debugging problems.

Stanton]]></description>
		<content:encoded><![CDATA[<p>I design all my tables with an Updated by field and an Updated date field.  This way I can tell when the last time a record in any table was updated.  This also helps with debugging problems.</p>
<p>Stanton</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mattaux</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/how-do-i-check-for-changes-in-a-database-on-insert-update/#comment-48327</link>
		<dc:creator>mattaux</dc:creator>
		<pubDate>Wed, 27 Oct 2004 04:50:34 +0000</pubDate>
		<guid isPermaLink="false">#comment-48327</guid>
		<description><![CDATA[I would suggest storing the changes you make to the database in the database itself that way you have an historical record and an audit trail.

One way to do this is to create shadow/mirror tables of all the core tables in your database. These shadows would contain all the fields in the core table along with a seed, a record type, and some kind of work flow ID. Then, on INSERT, UPDATE OR DELETE commands, the application would write the record to the shadow before any amendments.

In this scenario you would also have a control type table which would record the user, start and stop times and the work flow id etc. The application would have to populate this at the same time.

Hope this helps]]></description>
		<content:encoded><![CDATA[<p>I would suggest storing the changes you make to the database in the database itself that way you have an historical record and an audit trail.</p>
<p>One way to do this is to create shadow/mirror tables of all the core tables in your database. These shadows would contain all the fields in the core table along with a seed, a record type, and some kind of work flow ID. Then, on INSERT, UPDATE OR DELETE commands, the application would write the record to the shadow before any amendments.</p>
<p>In this scenario you would also have a control type table which would record the user, start and stop times and the work flow id etc. The application would have to populate this at the same time.</p>
<p>Hope this helps</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 6/9 queries in 0.015 seconds using memcached
Object Caching 338/341 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-21 05:04:09 -->