Use try/catch. There is a variable in the cfcatch struct that tells you the error code. If the error code is the one for "Lost connection to MySQL server during query", do a cflocation.
Pascal > -----Original Message----- > From: Evan Schott [mailto:[EMAIL PROTECTED] > Sent: 15 December 2004 00:00 > To: CF-Talk > Subject: Error handling on db queries > > I get frequent database errors with the message "Lost connection to MySQL > server during query". A simple page refresh will resubmit the query and > the page loads properly. Does anyone have any tips on how to handle this > type of error so it retries the query before sending the user to an error > page? Thanks! > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Special thanks to the CF Community Suite Silver Sponsor - CFDynamics http://www.cfdynamics.com Message: http://www.houseoffusion.com/lists.cfm/link=i:4:187677 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