Re: ADO RDD xHarbour
Posted: Tue May 26, 2015 8:31 am
Lucas,
ConnectionTimeout does not function the way we needed this only avoids the timeout default of 15s of ado.
If you set it to 0 ado will try forever otherwise throws error.
I think we should set it to 60 seconds then ask the user if he likes to continue trying.
The DBA from our client advise us to do the following:
Place a timer pinging to the server
When it fails close the connection and open a new one.
The recordsets should remain ok
I just don't know if then we would need a :filter to have all pending records updates and to skip through all of them issuing the updates failed during the time of the lost connection.
Or
Configure the OleDb or ODBC to avoid that enabling automatic reconnect.
How can we catch the connection lost error?
Do you or anyone have any experience with this. Mr Rao? Enrico? Rick?
ConnectionTimeout does not function the way we needed this only avoids the timeout default of 15s of ado.
If you set it to 0 ado will try forever otherwise throws error.
I think we should set it to 60 seconds then ask the user if he likes to continue trying.
The DBA from our client advise us to do the following:
Place a timer pinging to the server
When it fails close the connection and open a new one.
The recordsets should remain ok
I just don't know if then we would need a :filter to have all pending records updates and to skip through all of them issuing the updates failed during the time of the lost connection.
Or
Configure the OleDb or ODBC to avoid that enabling automatic reconnect.
How can we catch the connection lost error?
Do you or anyone have any experience with this. Mr Rao? Enrico? Rick?