Connection recovery to db
Posted: Fri 11 Nov 2011 09:17
Hi,
Actually i would like to ask if there is any chance to recover connection to db
after connection lost for a while/server reboot?
I always get DBNETLIB err + app crash and there is no information about how to realize it on unidac.
I found example for ADO like:
while not ADOConnection.Connected and not Terminated do
begin
Sleep(TIMEOUT_CONN_RESTORE);
ADOConnection.Close;
try
ADOConnection.Open;
except
end;
end;
and confirmation that it is done in anydac component.
Whati is the situation with unidac?
Thank you.
Actually i would like to ask if there is any chance to recover connection to db
after connection lost for a while/server reboot?
I always get DBNETLIB err + app crash and there is no information about how to realize it on unidac.
I found example for ADO like:
while not ADOConnection.Connected and not Terminated do
begin
Sleep(TIMEOUT_CONN_RESTORE);
ADOConnection.Close;
try
ADOConnection.Open;
except
end;
end;
and confirmation that it is done in anydac component.
Whati is the situation with unidac?
Thank you.