Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script Timeout

Status
Not open for further replies.

JennyP

Programmer
Jul 25, 2000
9
AT
I have a VB ActiveX.dll that queries an Oracle DB and returns the results.&nbsp;&nbsp;The DB is quite complex and the return time appears almost linear in proportion to the number of records returned (ie. it takes around 0.5s per record to return).<br>This is fine in the test system but the live system can return around 150 records at a time and I am getting a Scripting Timeout error.<br>Is there anyway to set the timeout in ASP??<br>I have tried Server.ScriptTimeout = &lt;time in secs&gt; but it does not appear to work....<br><br>Thanks<br>Jenny :)
 
Dear Jenny,<br><br>From MSDN:<br><br>ScriptTimeout<br>The ScriptTimeout property specifies the maximum amount of time a script can run before it is terminated. <br><br>The timeout will not take effect while a server component is processing. <br><br>Syntax<br>Server.ScriptTimeout = NumSeconds<br><br>&nbsp;<br><br>Parameters<br>NumSeconds <br>Specifies the maximum number of seconds that a script can run before the server terminates it. The default value is 90 seconds. <br>Remarks<br>A default ScriptTimeout can be set for a Web service or Web server by using the AspScriptTimeout property in the metabase. The ScriptTimeout property cannot be set to a value less than that specified in the metabase. For example, if NumSeconds is set to 10, and the metabase setting contains the default value of 90 seconds, scripts will time out after 90 seconds. However, if NumSeconds were set to 100, the scripts would time out after 100 seconds.<br><br>For more information about using the metabase, see Using IIS Admin Objects.<br><br>Hope this helps<br>-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top