Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2001-09-09
4
Medium Priority
?
1,086 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 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
One of the most important things in an application is the query performance. This article intends to give you good tips to improve the performance of your queries.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

963 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