Solved

How to extend the System DSN timeout period

Posted on 2004-09-04
3
1,886 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
Comment Utility
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
Comment Utility
Sorry, meant to say try setting the ASP timeout, as opposed to an ODBC timeout.
0
 

Author Comment

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

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Nowadays, some of developer are too much worried about data. Who is using data, who is updating it etc. etc. Because, data is more costlier in term of money and information. So security of data is focusing concern in days. Lets' understand the Au…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

763 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now