indmolding
Member
I am trying to detect, via code, whether or not I have been successful logging onto an Oracle database. In general, I've been trying:
try
.Execute
except
on e:Exception do
begin
end;
end;
There is never an exception raised, yet there is an error dialog which rquires human input to make go away. What I am trying to accomplish is to write a program that, in the event we lose a connection to a database, can just spin in a loop, trying to log back on, until the connection returns. The particular computer is unattended, polling our time clocks every minute, and storing the data. It is very important that I be able to restore a lost connection AUTOMATICALLY and without human intervention.
Any ideas?
Thanks
Bill Weaks
try
.Execute
except
on e:Exception do
begin
end;
end;
There is never an exception raised, yet there is an error dialog which rquires human input to make go away. What I am trying to accomplish is to write a program that, in the event we lose a connection to a database, can just spin in a loop, trying to log back on, until the connection returns. The particular computer is unattended, polling our time clocks every minute, and storing the data. It is very important that I be able to restore a lost connection AUTOMATICALLY and without human intervention.
Any ideas?
Thanks
Bill Weaks