Subject | if i lost connection ... |
---|---|
Author | Gerhard Knapp |
Post date | 2002-01-31T10:45:50Z |
hello,
using: D5, IBODatabase
if i lost the db connection (db server is down or network p.e.) and
my program tries (timer) to get the connection again, what is the best way?
i use
dmcc.database.Disconnect;
pause(1000);
dmcc.database.connect;
pause(2000);
sometim it works, sometime not, but i think my solution is a little stupid
..
if the db goes down and restart, i lost my dbhandle, so i think, and i
have to get a new one ..
is there a special IBO possibility?
- gerhard
using: D5, IBODatabase
if i lost the db connection (db server is down or network p.e.) and
my program tries (timer) to get the connection again, what is the best way?
i use
dmcc.database.Disconnect;
pause(1000);
dmcc.database.connect;
pause(2000);
sometim it works, sometime not, but i think my solution is a little stupid
..
if the db goes down and restart, i lost my dbhandle, so i think, and i
have to get a new one ..
is there a special IBO possibility?
- gerhard