Well that's simple enough...Thanks Dave, Emmet. I was trying to do an HTTP request into the admin area.
Rick -----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 11:31 AM To: CF-Talk Subject: RE: Check Data Source > What is the easiest way to check if a data source is available? > > I want to test in the Application.cfm file if a data source > is reachable and set a true. Then load the site. You can query the datasource within an exception handler: <cftry> <cfquery ...> ... </cfquery> <cfset DatasourceIsReachable = "true"> <cfcatch type="database"> ... look to see what kind of error you have; if it's because the datasource isn't reachable set variable to false ... </cfcatch> </cftry> Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191852 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

