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

x
?
Solved

TADOConnection timeout > 30 sec. impossible?

Posted on 2002-04-11
5
Medium Priority
?
909 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
  • 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 200 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

971 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