Hi. Is there a way to set timeout for the tag<CFSTOREDPROC>? I mean, for cfquery, it has a parameter
timeout in seconds. How about for CFSTOREDPROC?
I tried using
<cfset startproc = GetTickCount()>
<cfsetting requesttimeout = "20" />
<CFSTOREDPROC PROCEDURE="fsdfsd" DATASOURCE="sfsds">
cfprorparams here.........
</CFSTOREDPROC>
<cfset proc_execute = GetTickCount() - startproc >
proc_execute returns about 30,000 ms which is 30 s. But the timeout needs to end it in 20 s. It seems requesttimeout doesn't include the time it took for the stored procedure executing. That is why I'm looking for a timeout in cfstoredproc. Any suggestions? I don't wanna go to the Oracle server and set the timeout settings. I want it done in Coldfusion. Thanks.
I tried using
<cfset startproc = GetTickCount()>
<cfsetting requesttimeout = "20" />
<CFSTOREDPROC PROCEDURE="fsdfsd" DATASOURCE="sfsds">
cfprorparams here.........
</CFSTOREDPROC>
<cfset proc_execute = GetTickCount() - startproc >
proc_execute returns about 30,000 ms which is 30 s. But the timeout needs to end it in 20 s. It seems requesttimeout doesn't include the time it took for the stored procedure executing. That is why I'm looking for a timeout in cfstoredproc. Any suggestions? I don't wanna go to the Oracle server and set the timeout settings. I want it done in Coldfusion. Thanks.