<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/favorites/zingo/tags/date</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 05 Dec 2008 03:44:09 GMT</pubDate>
<item>
<title>(SQL) Created Date &amp;amp; Last Modified Date Triggers - zingo</title>
<link>http://snipplr.com/view/2595/created-date--last-modified-date-triggers/</link>
<description><![CDATA[ <p>First, create two new fields in your table "Created", and "LastModified" as "datetime" fields, being sure to allow nulls.  Then run this code as a query to create triggers that will update the appropriate field when a record is modified, or a record is inserted.  This proves very useful when you're dealing with a huge database.

In the code below replace [TableName] with your actual table name, and replace [UniqueID] with a unique ID field name in your table.</p> ]]></description>
<pubDate>Thu, 03 May 2007 10:52:06 GMT</pubDate>
<guid>http://snipplr.com/view/2595/created-date--last-modified-date-triggers/</guid>
</item>
</channel>
</rss>