Hi Miron,
Sorry for the late reply.
I just checked the server running the application. the MDAC version is 2.60.6526.2
The application is used to do select statment from MS SQL server, and sometimes the data is huge, sometimes not. i also hv to call procedure to execute plus insert data into another db.
the connectiontimeout =600 is set because last time when i set it to 0. it always easily prompt me the Timeout expired issue.
rgds
Main Topics
Browse All Topics





by: mironPosted on 2004-07-21 at 19:42:40ID: 11608893
I would like to start from dealing with error, the first question is what patches applied on the machines, MDAC version, what network protocol is used to connect to sql server.
library/en -us/ado270 /htm/ mdpro connection timeout.as p?frame=tr ue
second what is your application is selecting from sql server, is it little amount of information one at a time, or large quantities of data selected at once
how the selection of data is done, do you send query to sql server from the application, or call a procedure and if both used, is there correlation between the manner of selecting data and this issue.
Then, I would verify hardware and the system event log on the client machine. System event logs can be looked up by going into the machine start menu, click "Run" type eventvwr into the dialog box and click Ok, see if any events logged at the time when this error occurs.
also, could you tell us why Connection object ConnectionTimeout property is set to 10 minutes ( 600 seconds ). Just want to make sure that the effect of this property is what you actually planned to use
http://msdn.microsoft.com/
May be ( I am guessing ) you wanted to cancel a long running query. Then you need to use ADODB Command object and set the CommandTimeout property for this object. See if it helps, share a bit more on what is you are trying to accomplish with the application so that we can look into it further.
-- cheers