<cftry>
<cfquery ...> </cfquery>
<cfcatch type="any">
<cfmail ...>
<cfabort> (or <cfthrow) or whatever)
</cfcatch>
</cftry>
On 10/22/07, Orlini, Robert <[EMAIL PROTECTED]> wrote:
> Is there anyway to hace CF send an email alert if a datasource connection
> does not respond within a certain amount of seconds?
>
> I have a query that loads an image from another server and I'm using a
> cfcatch, but it only reacts to a lost connection when the server fails. I
> would like it to send an alert after a period of time when it does not
> connect using a cfquery.
>
> Thx.
>
> Robert O.
> HWW
>
> <CFQUERY NAME="hisname" DATASOURCE="oracle repository connection">
> SELECT name
> from dateyy
> where myday=to_char(sysdate,'DD') and mymon=to_char(sysdate,'MON') and
> rights=0
> order by ranking,postings desc
> </cfquery>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion is delivering applications solutions at at top companies
around the world in government. Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:291754
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4