Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Datasource not defined

Status
Not open for further replies.

BettyGay

Programmer
Feb 23, 2005
12
US
how do I trap a datasource error in a page. I have several different datasources in the same page but I want the page to still run even if one of the datasources is down. Just skip over that field.
 
you could surround your code with
<html>
....
<cftry>
<cfquery name .....>

</cfquery>
<cfcatch type="database">
<cfoutput>
sorry we are not able to process your request due to some db error...
</cfoutput>
<cfabort>
</cfcatch>
</cftry>

hope it helps...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top