<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Skratchdot &#187; ColdFusion</title>
	<atom:link href="http://skratchdot.com/tag/coldfusion/feed/" rel="self" type="application/rss+xml" />
	<link>http://skratchdot.com</link>
	<description></description>
	<lastBuildDate>Sat, 12 Dec 2009 21:02:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Verify All ColdFusion DataSources</title>
		<link>http://skratchdot.com/2009/12/verify-all-coldfusion-datasources/</link>
		<comments>http://skratchdot.com/2009/12/verify-all-coldfusion-datasources/#comments</comments>
		<pubDate>Sat, 12 Dec 2009 18:44:40 +0000</pubDate>
		<dc:creator>skratchdot.com</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[adminapi]]></category>
		<category><![CDATA[datasources]]></category>

		<guid isPermaLink="false">http://skratchdot.com/?p=114</guid>
		<description><![CDATA[Recently I was asked how to programmatically verify ColdFusion DataSources.  I came up with a few methods of doing so.  Each have their pros and cons.
<div> </div>
<h3 style="text-decoration:underline">Method #1 : Try/Catch using cfquery</h3>
<div> </div>
<div><b>PROS:</b></div>
<ul class="listSquare">
	<li>Can test for "datasource" specific behavior by using a custom cfquery.  If you do this, the query may not work for other datasources, thereby not actually testing the validity of the datasource.</li>
</ul>
<div> </div>
<div><b>CONS:</b></div>
<ul class="listSquare">
	<li>Uses try/catch.</li>
	<li>Does not work with all datasources.  I don't know of a cfquery that will work for all datasources / DBs / etc</li>
</ul>
<div> </div>
<div><b>NOTES:</b></div>
<div>This is my least favorite, because I couldn't come up with a cfquery to test *all* datasources.  It will work for some datasources, but not all.</div>
<div> </div>
<div><b>SOURCE:</b></div>]]></description>
		<wfw:commentRss>http://skratchdot.com/2009/12/verify-all-coldfusion-datasources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
