Running Railo 4.0.5.004 on Windows 2012 with MS-SQL 2012.
I am trying to gracefully kill a long running query as a fail safe mechanism, but nothing I try seems to work.
I am using the JTDS driver.
The simplest solution should be the timeout attribute on cfquery.
Running this code works fine
<cfquery name="example1" datasource="xxx" timeout="1">
SELECT TOP 1 * FROM contacts
WAITFOR DELAY '00:00:10'
</cfquery>
However if I remove the TOP 1 and return all rows (there's a few million in the table) the query continues running and ignores the timeout value until it has completed.
I have the same issue when using requesttimeout or even running the query in a separate thread and placing a timeout on that. Once the query is returning rows it seems unstoppable and the thread unkillable.
Can anyone shed any light on this behaviour?
Thanks in advance
Andy