Solved

TADOConnection timeout > 30 sec. impossible?

Posted on 2002-04-11
5
805 Views
Last Modified: 2009-07-29
Hi there,

I'm trying to execute stored procedure on Microsoft SQL Server 2000 via TADOConnection and TADOStoredProcedure components. Every time when the stored procedure execution needs more than 30 seconds, I receive message 'Timeout expired'. Server Admin told me that the server settings do not impose any timeouts (timeout is infinite).
Setting ConnectionTimeout and CommandTimeout on TADOConection component does not help at all.

My question: are here some details that I've missed setting ADO connection?

Thanks
0
Comment
Question by:Fatman121898
[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
  • 2
5 Comments
 
LVL 6

Expert Comment

by:wimmeyvaert
ID: 6934175
Interesting ...
Have the same problem as well
0
 
LVL 17

Accepted Solution

by:
geobul earned 50 total points
ID: 6936635
Hi F(B)atman,

Use TADODataSet component instead of TADOStoredProc. Write the SQL expression (stored proc) in its CommandText property. Set TADODataSet.CommandTimeout property to the desired value or 0 (infinite).

Regards, Geo
0
 
LVL 1

Author Comment

by:Fatman121898
ID: 7082989
Yesss, it works!!!
Geo, sorry that I couldn't pay you the money (points) earlier :)
Yours,
Fat
0
 
LVL 1

Author Comment

by:Fatman121898
ID: 7082995
Yesss, it works!
Geo, sorry that I couldn't pay you the points earlier. Now get them :)
Yours,
Fat
0
 
LVL 17

Expert Comment

by:geobul
ID: 7083062
Thank you so much, Fatman.

Best regards, Geo
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

756 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