Solved

How to extend the System DSN timeout period

Posted on 2004-09-04
3
1,945 Views
Last Modified: 2012-06-27
Hi Experts

My ODBC driver  (called in ASP) is timing out  my queries before they're done (their statistical queries on lots of data, and take about 3 to 4 minutes to run), but I can't see anywhere in the ODBC config snapin to set the timeout period. Can you help?

(MS SQL 2000)
0
Comment
Question by:metalaureate
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
jdlambert1 earned 500 total points
ID: 11980523
Try manually setting your command timeout:

Set Db = Server.CreateObject("ADODB.Connection")
Db.CommandTimeout = 600 'in seconds, 600 = 10 minutes
0
 
LVL 15

Expert Comment

by:jdlambert1
ID: 11980526
Sorry, meant to say try setting the ASP timeout, as opposed to an ODBC timeout.
0
 

Author Comment

by:metalaureate
ID: 11980535
No, you were right the first time. .CommandTimes=600 does the trick.
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
I have a large data set and a SSIS package. How can I load this file in multi threading?
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question