cfquery timeout doesn't work out on jdbc driver

2009-10-08 Thread Vamsi Pappu
Hi All, I have a situation here where cfquery doesn't seem to be performing well on jdbc driver, when I read in forums it was clearly mentioned that cfquery timeout doesn't support some drivers, Is there any another alternate to this. My requirement is no matter what happens, if query

RE: cfquery timeout doesn't work out on jdbc driver

2009-10-08 Thread brad
themselves, often the only way to ensure such a timeout is with a second monitor thread. ~Brad Original Message Subject: cfquery timeout doesn't work out on jdbc driver From: Vamsi Pappu vissu.va...@gmail.com Date: Thu, October 08, 2009 7:47 am To: cf-talk cf-talk@houseoffusion.com

Re: cfquery timeout doesn't work out on jdbc driver

2009-10-08 Thread Adam Haskell
that cfquery timeout doesn't support some drivers, Is there any another alternate to this. My requirement is no matter what happens, if query is not responding in given amount of time then it should timeout.Can anyone suggest a good advice. Thanks, Vamsi

Re: cfquery timeout doesn't work out on jdbc driver

2009-10-08 Thread Rick Root
: Hi All, I have a situation here where cfquery doesn't seem to be performing well on jdbc driver, when I read in forums it was clearly mentioned that cfquery timeout doesn't support some drivers, Is there any another alternate to this. My requirement is no matter what happens, if query

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Sung Woo
Anyone? Bueller? I really need an answer to this -- even though I'm running Fusion Reactor and can keep a survival strategy, this is no way to keep a server running. Is there anyone out there who's successfully used the TIMEOUT parameter in CFQUERY with CFMX 7.0.2 and SQL 2005 Standard?

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Casey Dougall
On Tue, Apr 14, 2009 at 5:25 PM, Sung Woo s...@cornell.edu wrote: Hi Casey, What happened today is that the SQL server basically locked up. CF kept waiting for the request to come back, but it never did because it just hung infinitely. It seems as if CF waits forever in a case like this,

RE: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Mark Kruger
[mailto:s...@cornell.edu] Sent: Wednesday, April 15, 2009 7:58 AM To: cf-talk Subject: Re: CFQUERY Timeout for SQL2005 Fails Anyone? Bueller? I really need an answer to this -- even though I'm running Fusion Reactor and can keep a survival strategy, this is no way to keep a server running

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Robert Rawlins
, concurrent threads and cfquery timeout settings but seem to still have the same problem on occasion, I'm wondering if they're caused by the same issue, I too running SQL2k5 however I'm on CF8. Mark, I'd concur that its waiting to establish a connection, is there anything which can be done

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Sung Woo
Mark and Casey, Thanks for clarifying this for me. I don't own the SQL Server that I need to hit, so it looks like I'm between a rock and a hard place. I still don't think the TIMEOUT parameter is working, though. In my example, I'm hitting a database that is fully operational, and I have a

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Sung Woo
Also -- this may just be me being dense, but I don't get why the TIMEOUT feature in CFQUERY has to work this way. It's CF that's making the initial request to the datasource, so it should start counting down from the moment it creates that request. And then after waiting for a predetermined

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Sung Woo
Hi Mark, To answer your question -- there's a DDL transaction that's running on the server, and from what the folks have told me, an ALTER TABLE command was causing the lock to occur. And the downside is that giving hints (i.e., WITH (NOLOCK)) is not going to have an effect in this

RE: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Mark Kruger
-talk Subject: Re: CFQUERY Timeout for SQL2005 Fails Hi Mark, To answer your question -- there's a DDL transaction that's running on the server, and from what the folks have told me, an ALTER TABLE command was causing the lock to occur. And the downside is that giving hints (i.e., WITH (NOLOCK

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Matthew Williams
The docs say, no, it may not timeout at 1 second. Check out the livedocs... Because the timeout attribute only affects the maximum time for each suboperation of a query, the cumulative time may exceed its value. And, even then, the query stuff is considered to be 3rd party (or at least, so

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-15 Thread Sung Woo
Check this out. This one, as I've said before, outputs a number around 3000. cfquery name=test datasource=dsn timeout=1 select top 2 * from table/cfquery cfoutput#cfquery.ExecutionTime#/cfoutput However, this one results in an error: Error Executing Database Query.

CFQUERY Timeout for SQL2005 Fails

2009-04-14 Thread Sung Woo
Here's my test: cfquery name=test datasource=dsn timeout=1 select top 2 * from table /cfquery cfoutput#cfquery.ExecutionTime#/cfoutput I'm getting 3000+ for this value. This shouldn't be, right? Because I have the timeout parameter set for a second? The driver I'm using

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-14 Thread Sung Woo
Actually, I was wrong -- even cfsetting requesttimeout=1 enablecfoutputonly=No doesn't work, because it still waits for the cfquery to finish before it outputs the timeout error. Is there any solution for this? The database we're relying on is unstable and we need to be able to kill the

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-14 Thread Casey Dougall
how about adding WITH (NOLOCK) If your queries are just selecting data, i'd use WITH (NOLOCK) that way you don't need to wait for transactions to finish if that table gets heavy inserts cfquery name=test datasource=dsn timeout=1 select top 2 * WITH (NOLOCK) from table

Re: CFQUERY Timeout for SQL2005 Fails

2009-04-14 Thread Sung Woo
Hi Casey, What happened today is that the SQL server basically locked up. CF kept waiting for the request to come back, but it never did because it just hung infinititely. It seems as if CF waits forever in a case like this, so it's vital that I can kill the connection from the CFQUERY.

Cfquery timeout parameter.

2007-02-22 Thread Ian Skinner
Can somebody tell me exactly how this works? Reading the documentation I get this message. Timeout: Maximum number of seconds that each action of a query is permitted to execute before returning an error. The cumulative time may exceed this value. What exactly is an action in a query and if

RE: Cfquery timeout parameter.

2007-02-22 Thread Ben Nadel
? www.bennadel.com/ask-ben/ -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 12:38 PM To: CF-Talk Subject: Cfquery timeout parameter. Can somebody tell me exactly how this works? Reading the documentation I get this message. Timeout: Maximum

RE: Cfquery timeout parameter.

2007-02-22 Thread Ian Skinner
I guess it means the execution of a single: UPDATE SELECT DELETE Would this also apply to sub-selects and other more comlex SQL syntax? Say: SELECT aField FROM (SELECT bField FROM bTable) aTable Would that be two actions? Each one allowed to run for the timeout period, or if the inner select

RE: Cfquery timeout parameter.

2007-02-22 Thread Ben Nadel
] Sent: Thursday, February 22, 2007 12:52 PM To: CF-Talk Subject: RE: Cfquery timeout parameter. I guess it means the execution of a single: UPDATE SELECT DELETE Would this also apply to sub-selects and other more comlex SQL syntax? Say: SELECT aField FROM (SELECT bField FROM bTable) aTable

CFQUERY Timeout

2004-06-10 Thread Mickael
Hello All, My host has issues from time to time I get a CFQUERY timeout.But when I rerun the query it works (most times).What type of CFCATCH type would this be? Here is my error Error Occurred While Processing Request The request has exceeded the allowable time limit Tag: CFQUERY Thanks in

RE: CFQUERY Timeout

2004-06-10 Thread Douglas.Knudsen
you can't catch this type of issue.Look at tuning the queries and code on the page to run faster.Also look at cfsetting requesttimeout= if needed. Doug -Original Message- From: Mickael [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 5:03 PM To: CF-Talk Subject: CFQUERY Timeout

RE: CFQUERY Timeout

2004-06-10 Thread Semrau Steven Ctr SAF/IE
cftry cfquery x x /cfquery cfcatch type=database Your error routine here /cfcatch /cftry -Original Message- From: Mickael [mailto:[EMAIL PROTECTED] Sent: Thursday, June 10, 2004 5:03 PM To: CF-Talk Subject: CFQUERY Timeout Hello All, My host has issues from time to time I get

re-re-re-re-re-post - last words on cfquery timeout

2001-11-30 Thread Carlisle, Eric
Does Oracle's ODBC driver support the cfquery timeout attribute? The Microsoft ODBC for Oracle doesn't seem to... Thanks :) EC . ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community

REPOST - cfquery timeout attribute

2001-11-29 Thread Carlisle, Eric
We had an Oracle listener hang. This caused big problems in ColdFusion. The timeout attribute just didn't seem to work. I posted this here before and it was suggested that the timeout clock doesn't start until the SQL is sent. Since the listener was hung, I'm not sure how far CF went

Re: REPOST - cfquery timeout attribute

2001-11-29 Thread Dave Hannum
Use CFTRY/CFCATCH around your queries and do a little custom error handling. It goes a LONG way! Dave - Original Message - From: Carlisle, Eric [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 8:04 AM Subject: REPOST - cfquery timeout attribute We had

RE: REPOST - cfquery timeout attribute

2001-11-29 Thread Carlisle, Eric
Every query I do is nested in a try/catch. To bad I can't timeout a try/catch block. :/ Thanks :) EC -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 8:17 AM To: CF-Talk Subject: Re: REPOST - cfquery timeout attribute Use CFTRY

Re: REPOST - cfquery timeout attribute

2001-11-29 Thread Dave Hannum
Whenever I have an Oracle listner problem, try/catch always catches it. Are you sure it was a listner crash? Dave - Original Message - From: Carlisle, Eric [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 8:18 AM Subject: RE: REPOST - cfquery timeout

RE: REPOST - cfquery timeout attribute

2001-11-29 Thread Carlisle, Eric
Subject: Re: REPOST - cfquery timeout attribute Whenever I have an Oracle listner problem, try/catch always catches it. Are you sure it was a listner crash? Dave - Original Message - From: Carlisle, Eric [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 8:18

Re: REPOST - cfquery timeout attribute

2001-11-29 Thread Dave Hannum
I'm not sure if designating your CFCATCH TYPE=Database would catch a timeout or not. Dave - Original Message - From: Carlisle, Eric [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Thursday, November 29, 2001 8:54 AM Subject: RE: REPOST - cfquery timeout attribute The listener

RE: REPOST - cfquery timeout attribute

2001-11-29 Thread Chris Norloff
. :/ Thanks :) EC -Original Message- From: Dave Hannum [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 29, 2001 8:17 AM To: CF-Talk Subject: Re: REPOST - cfquery timeout attribute Use CFTRY/CFCATCH around your queries and do a little custom error handling. It goes a LONG way! Dave

cfquery timeout attribute support

2001-11-28 Thread Carlisle, Eric
From the CFML documentation on the cfquery timeout attribute: This attribute is not supported by most ODBC drivers. TIMEOUT is supported by the SQL Server 6.x or above driver. The minimum and maximum allowable values vary, depending on the driver. Is there an account of what ODBC drivers