Solved

VB Application times-out (VB6, SQL7, OLEDB)

Posted on 2001-09-09
4
1,082 Views
Last Modified: 2009-12-16
Hi all,

I keep getting a timeout error for a (rather large) generic query I am using.

I don't want to change the query... I'd just like to know how to tell SQL 7 / VB NOT to timeout, ever!

I have set the following in my connection string:
ConnectionTimeout=60000;CommandTimeout=60000

I have also set the EnterpriseManager->SQL Server Properties->Connections->Query Timeout Property to 120000. Note that setting it to 0 does not seem to help (in fact, the query times out faster this way)... even though it is supposed to give you unlimited time.

The query lasts for about 60 seconds before it times out.

What am I doing wrong?? Or is there a system-enforced limit to queries?

I'd prefer not to have to resort to DTS for everything I do with large tables!

:-) Thanks
0
Comment
Question by:AddamB
[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
4 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 100 total points
ID: 6469754
You shouldn know that i would like to enforce your Generic query, but anyway:

In ADO, you have the CommandTimeout property that needs to be set to 0, and that's something i DON'T do in the connection string, but when just before i execute my SQL. BTW, i use rather the ADODB.Command obhect, which has this settings...

The property in the Enterprise Manager is ONLY for the Enterprise Manager itself :-)

Cheers
0
 

Expert Comment

by:CleanupPing
ID: 9281611
AddamB:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 34

Expert Comment

by:arbert
ID: 9552120

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Accept AngelIII's comment

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Arbert
EE Cleanup Volunteer
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

617 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