Page 1 of 1

Check for server

Posted: Thu 11 Jan 2007 01:53
by PeterParker
I have an application that will not always be connected to the network, and I would like to know if there is a better way to check for the server's availability.

Currently, I am doing a TMSConnection.open. But the delay on failure is horrible.

Anything else I should do?

Posted: Fri 12 Jan 2007 11:31
by Jackson
OLE DB API does not provide functionality to check if SQL server exists
except a connection attempt. You can try to ping the computer you want to
connect to by Indy components to check if it exists in your network.
Try to decrease value of the TMSConnection.ConnectionTimeout property.

Indy

Posted: Fri 12 Jan 2007 14:44
by PeterParker
I guess Indy was always a fall back. Thanks for the info.