run a query and catch any db errors... if an error is caught use the second one...
----- Original Message ----- From: "admin" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, June 24, 2003 3:45 PM Subject: Re: Database Availability > the dbs's in quesion are read only and are automatically sync'd > ----- Original Message ----- > From: "Michael T. Tangorre" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Tuesday, June 24, 2003 12:41 PM > Subject: Re: Database Availability > > > > I think the bigger issue would be how to keep them synched up if you > switch > > between them :-) > > > > > > ----- Original Message ----- > > From: "admin" <[EMAIL PROTECTED]> > > To: "CF-Talk" <[EMAIL PROTECTED]> > > Sent: Tuesday, June 24, 2003 3:33 PM > > Subject: Database Availability > > > > > > > I hope that this isn't a stipid question but I'm sure it must have been > > asked before. > > > > > > I have a two identical databases on different sql boxes. One primary and > > one back up. I would like to be able to do something like this in the > > application.cfm > > > > > > <cfif primary_available> > > > <cfset use_database="primary"> > > > <cfelseif Secondary_available> > > > <cfset use_database="secondary> > > > <cfelse> > > > .... no database available > > > </cfif> > > > > > > Any thought on how I can easily check to see which box is available. > > > > > > Cheers > > > > > > Richard > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

