I'm currently developing an application which uses two indicators, which shows the network status (link to server) and sql status. I need a way to check for these two, without having my app to hang while waiting (or if either on of the two might be down).
Network :
I had this idea of pinging the server every x minutes and if I don't receive anything back then there is a connection problem. The problem with this is that my app hanged whenever the connection is not working. I used a component I found on the net somewhere.
SQL :
I'm not sure how I would do this, maybe see if I can connect to it with a ADOConnectioo component and see if it works, but I think I'll run into the same problem as above if it doesn't work.
In short, I need to be able to check the status of the two (sql and network) without it affecting my application.
Any ideas ?
Network :
I had this idea of pinging the server every x minutes and if I don't receive anything back then there is a connection problem. The problem with this is that my app hanged whenever the connection is not working. I used a component I found on the net somewhere.
SQL :
I'm not sure how I would do this, maybe see if I can connect to it with a ADOConnectioo component and see if it works, but I think I'll run into the same problem as above if it doesn't work.
In short, I need to be able to check the status of the two (sql and network) without it affecting my application.
Any ideas ?