Solved

TADOConnection timeout > 30 sec. impossible?

Posted on 2002-04-11
5
817 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

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Connection between libmysql.dll and MySQL Versions 7 133
Intraweb download file link ? 1 184
enhance the following code 3 54
Firemonkey Queue list 1 51
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

710 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