Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

timeout error

Status
Not open for further replies.

gust1480

Programmer
Mar 19, 2002
148
PH
Can somebody please tell me based on your experience what would cause a vb program using a database to produce a "timeout error". I find it really hard to track this error cause it just happens.
 

Sounds like your ADO command object is timing out. If I remember correctly its default is 30 seconds you can change this in code to a value that you want or you could wait forever if you wanted (not recommended). This can happen, say when you are trying to update a record and someone else has the page locked because of the type of recordset that they have it locks the table/page that you are trying to update or even select from.

Good Luck

 
Thanks for answering my question. How can I avoid this kind of error to happen? Are there ways?
 

Make sure all the ADO objects created properly and unload
them properly. check the appropriate event to trap the error
Good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top