Solved

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

Posted on 2001-09-09
4
1,080 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
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.
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

759 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