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.

The real query I run returns usually within milliseconds, about 75ms at most.  
So this is something that is out of the ordinary, but I want to prevent it from 
happening in the future.  Is there a way?  Thanks.


>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 20000 * WITH (NOLOCK)
>>       from table
>> </cfquery> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321594
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to