J
just4fun6969
I am creating an application that is designed to monitor a mission
critical in-house app. What I want to do is query the database to get
some basic stats and then display those stats to the user.
I am running into a problem when I try and open the database when the
database is down (The situation is the database is down and the
monitoring program processes alerts and prompts the user for action).
I can create async commands - but that IS NOT the solution to this
problem. It appears that the program will wait at the conn.open() call
until the timeout is reached at which time it throws an exception - I
believe this is true even when the conn.open is in it's own thread.
Is there anyway I can make the conn.open() call asynchronously?
Barring that solution, does anyone have a recommendation for a minimum
timeout?
critical in-house app. What I want to do is query the database to get
some basic stats and then display those stats to the user.
I am running into a problem when I try and open the database when the
database is down (The situation is the database is down and the
monitoring program processes alerts and prompts the user for action).
I can create async commands - but that IS NOT the solution to this
problem. It appears that the program will wait at the conn.open() call
until the timeout is reached at which time it throws an exception - I
believe this is true even when the conn.open is in it's own thread.
Is there anyway I can make the conn.open() call asynchronously?
Barring that solution, does anyone have a recommendation for a minimum
timeout?