I'm trying to test code to handle queries that run...
# cfml-general
d
I'm trying to test code to handle queries that run way unexpectedly long. I'm adding timeout="5" to some cfqueries, and in the query itself, using the SQL Server-specific construct
WAITFOR DELAY '00:01'
to push execution time out enough to trigger a timeout exception in cf. It's not acting like I'd expect, seems the query times out anyway, which it shouldn't. Seems like MSSQL treats any WAITFOR as meaning something different that the docs I've seen. Thoughts?
Plot thickens. Far as I can tell the timeout parameter for cfquery doesn't work. This is cf 0218 with SQL Server. I found some semi-conclusive semi-evidence that this has been an issue for a long time and ignored by Adobe, but nothing solid, beyond my own testing. Does anyone have definitive knowledge about this? @Mark Takata (Adobe) @priyank_adobe
Alternatively, is there any way to tell SQL Server to throw if query execution takes longer than an amount of time you say?