Wrox Programmer Forums
|
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 2nd, 2004, 01:45 PM
Registered User
 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tlbacon527 Send a message via MSN to tlbacon527
Default How can I modify script timeout?

Hi,

  I am running a query through my web page that accesses an SQL database and I seem to be running into a time out issue occassionally. I receive the following error

Active Server Pages error 'ASP 0113'
Script timed out

/Garth/displayreport.asp

The maximum amount of time for a script to execute was exceeded. You can change this limit by specifying a new value for the property Server.ScriptTimeout or by changing the value in the IIS administration tools.


How may I set the script timeout from the program as I have no access to the server administration tools?

Thanks for your help,
Tamara
 
Old February 2nd, 2004, 03:54 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

On the connection and command objects, there is a timeout property. I believe it is the ConnectionTimeout and CommandTimeout properties, which you set to 0, and there isn't a timeout.
 
Old February 2nd, 2004, 03:56 PM
Registered User
 
Join Date: Jan 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to tlbacon527 Send a message via MSN to tlbacon527
Default

Thank you I will look those up and try that

Thank you
Tamara
 
Old February 5th, 2004, 09:24 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 217
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to mega
Default

Hi Tamara.
You can check out how long the timeout period is and set it by adding this to your page:
Code:
<%
  Dim intTimeOut
  intTimeOut = Server.ScriptTimeOut
  Response.Write(intTimeOut)
  Server.ScriptTimeOut = 100 ' set it to 100 sec.
  Response.Write("" & intTimeOut)
%>
- mega





Similar Threads
Thread Thread Starter Forum Replies Last Post
i want to modify the shopping ssomchai BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 1 April 3rd, 2008 01:52 AM
Modify XSLT mikeymikey XSLT 4 January 5th, 2008 11:21 PM
How to modify hidden value? Edward King Javascript 2 January 21st, 2006 05:44 AM
Script timeout (processing long loops) tsimsha Classic ASP Basics 2 January 5th, 2005 03:31 AM
Call and run CGI script from a PHP script ... how? dbruins BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 June 10th, 2003 03:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.