Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

How to extend the System DSN timeout period

Posted on 2004-09-04
3
Medium Priority
?
2,016 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 15

Accepted Solution

by:
jdlambert1 earned 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how the fundamental information of how to create a table.

618 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