<?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: Why use Constraints in SQL ?</title>
	<atom:link href="http://gauravjassal.com/php/why-use-constraints-in-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://gauravjassal.com/php/why-use-constraints-in-sql/</link>
	<description>web and multimedia programmer&#039;s blog</description>
	<lastBuildDate>Thu, 29 Jul 2010 05:16:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Heartburn Home Remedy</title>
		<link>http://gauravjassal.com/php/why-use-constraints-in-sql/comment-page-1/#comment-81</link>
		<dc:creator>Heartburn Home Remedy</dc:creator>
		<pubDate>Wed, 15 Apr 2009 11:59:41 +0000</pubDate>
		<guid isPermaLink="false">http://gauravjassal.com/?p=57#comment-81</guid>
		<description>Hey, nice tips.   I&#039;ll buy a bottle of beer to that person from that forum who told me to go to your blog :)</description>
		<content:encoded><![CDATA[<p>Hey, nice tips.   I&#8217;ll buy a bottle of beer to that person from that forum who told me to go to your blog <img src='http://gauravjassal.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: water softening systems</title>
		<link>http://gauravjassal.com/php/why-use-constraints-in-sql/comment-page-1/#comment-6</link>
		<dc:creator>water softening systems</dc:creator>
		<pubDate>Thu, 29 Jan 2009 13:50:43 +0000</pubDate>
		<guid isPermaLink="false">http://gauravjassal.com/?p=57#comment-6</guid>
		<description>Does anyone use database constraints *instead* of app logic to enforce business rules?</description>
		<content:encoded><![CDATA[<p>Does anyone use database constraints *instead* of app logic to enforce business rules?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Loïc Hoguin</title>
		<link>http://gauravjassal.com/php/why-use-constraints-in-sql/comment-page-1/#comment-3</link>
		<dc:creator>Loïc Hoguin</dc:creator>
		<pubDate>Tue, 27 Jan 2009 11:03:44 +0000</pubDate>
		<guid isPermaLink="false">http://gauravjassal.com/?p=57#comment-3</guid>
		<description>I agree, great post. I would be glad if more people used constraints in their projects, they&#039;re really useful in all parts of your project, including development, and prevent problems. Most people don&#039;t know about them unfortunately. Ed: great idea, it would prove quite powerful. It would require caching to be efficient but that should not be a problem since the schema usually don&#039;t change often.</description>
		<content:encoded><![CDATA[<p>I agree, great post. I would be glad if more people used constraints in their projects, they&#8217;re really useful in all parts of your project, including development, and prevent problems. Most people don&#8217;t know about them unfortunately. Ed: great idea, it would prove quite powerful. It would require caching to be efficient but that should not be a problem since the schema usually don&#8217;t change often.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed Lecky-Thompson</title>
		<link>http://gauravjassal.com/php/why-use-constraints-in-sql/comment-page-1/#comment-2</link>
		<dc:creator>Ed Lecky-Thompson</dc:creator>
		<pubDate>Tue, 27 Jan 2009 11:02:54 +0000</pubDate>
		<guid isPermaLink="false">http://gauravjassal.com/?p=57#comment-2</guid>
		<description>Great article, Gaurav. One thing I do like about constraints and triggers is that by keeping an additional layer of responsibility for referential integrity within the RDBMS (as opposed to the application) it means that any third party scripts or applications which access the database automatically enjoy the same level of protection as the web application. RI can be destroyed in a second by an errant PERL script that somebody quickly knocked up to solve a problem late on a Friday afternoon; using constraints and triggers gets around this. One thing you might be interested in looking at is writing some PHP classes which can read the database constraints and trigger schema and use it to automatically build validation logic in your application; that way you don&#039;t have to constantly &#039;match&#039; your application validation to the database schema, because it&#039;s pulled out automatically on the fly.</description>
		<content:encoded><![CDATA[<p>Great article, Gaurav. One thing I do like about constraints and triggers is that by keeping an additional layer of responsibility for referential integrity within the RDBMS (as opposed to the application) it means that any third party scripts or applications which access the database automatically enjoy the same level of protection as the web application. RI can be destroyed in a second by an errant PERL script that somebody quickly knocked up to solve a problem late on a Friday afternoon; using constraints and triggers gets around this. One thing you might be interested in looking at is writing some PHP classes which can read the database constraints and trigger schema and use it to automatically build validation logic in your application; that way you don&#8217;t have to constantly &#8216;match&#8217; your application validation to the database schema, because it&#8217;s pulled out automatically on the fly.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
