How to extend the System DSN timeout period

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)
metalaureateAsked:
Who is Participating?
 
jdlambert1Connect With a Mentor Commented:
Try manually setting your command timeout:

Set Db = Server.CreateObject("ADODB.Connection")
Db.CommandTimeout = 600 'in seconds, 600 = 10 minutes
0
 
jdlambert1Commented:
Sorry, meant to say try setting the ASP timeout, as opposed to an ODBC timeout.
0
 
metalaureateAuthor Commented:
No, you were right the first time. .CommandTimes=600 does the trick.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.