Solved

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

Posted on 2001-09-09
4
1,077 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
4 Comments
 
LVL 142

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
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.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

932 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

9 Experts available now in Live!

Get 1:1 Help Now