Thanx Pete and John.

That script works fine for me. Looking for improvements.

Cheers

MD

2006/1/27, John Beynon <[EMAIL PROTECTED]>:
> and that's not working?
>
> the admin API should be able to verify a DSN for you - if not the
> factory service can,
>
> jb.
>
> On 27/01/06, Michel Deloux <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > do you have suggestions about how to know if a external DB is online?
> >
> > I'm using this simple script:
> >
> > <cfsetting requesttimeout="500">
> > <cftransaction action="begin">
> > <cftry>
> > <cfquery name="blabla" datasource="#app.DSN#">
> > select TOP 1 field from externalDB
> > where 1=1
> > </cfquery>
> > <cfcatch type="any">
> > Error - DB offline
> > </cfcatch>
> > </cftry>
> > </cftransaction>
> >
> > Cheers
> >
> > MD
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230582
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=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to