If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Timeout Expires from SQL Server 2000

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-29-04, 00:44
michaelfg81 michaelfg81 is offline
Registered User
 
Join Date: Mar 2004
Posts: 202
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
Reply With Quote
  #2 (permalink)  
Old 12-29-04, 08:06
Thrasymachus Thrasymachus is offline
SQL Server Street Fighter
 
Join Date: Nov 2004
Location: Down The Rabbit Hole
Posts: 7,979
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.
__________________
software development is where smart people go to waste their lives
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On