Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2004
    Posts
    202

    Unanswered: Timeout Expires from SQL Server 2000

    Hi there,

    I got this one problem which i encounter when i need to pull out data from database (SQLSERVER 2000).From the database i manage to query out data which take about 1 minutes but when i pull out data thru ASP connected to database, the error keep coming out.
    Question: How to make the 'timeout expires' time longer than the current one from ASP?
    Thanx

  2. #2
    Join Date
    Nov 2004
    Location
    on the wrong server
    Posts
    8,835
    Provided Answers: 6
    If you are having a script timeout, in your ASP code add this line:

    Server.ScriptTimeout = 10000000

    If it is a SQL timeout follow these instructions from BOL:

    How to set a time limit for remote queries (Enterprise Manager)
    To set a time limit for remote queries

    Expand a server group.


    Right-click a server, and then click Properties.


    Click the Connections tab.


    Under Remote server connections, in the Query time-out (sec, 0 = unlimited) box, type or select a value from 0 through 2147483647 to set the maximum number seconds that Microsoft® SQL Server™ will wait before timing out.


    Note Remote server connections must be allowed before this value can be set.
    “If one brings so much courage to this world the world has to kill them or break them, so of course it kills them. The world breaks every one and afterward many are strong at the broken places. But those that will not break it kills. It kills the very good and the very gentle and the very brave impartially. If you are none of these you can be sure it will kill you too but there will be no special hurry.” Earnest Hemingway, A Farewell To Arms.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •