PostgreSQL

hi is any way to detect if the connect time out for a remote DataBase.

Check the Error and ErrorMessage fields.

ok
thanks
Tim

hi tim

my problem is i need to cancel the Remoter connection if freeze for about 1 or 2 second is any way to cancel the connection if no response.

Not that I know of. You could try connecting a regular TCPSocket first to test for network connectivity.

i am using this If System.Network.LookupIPAddress(sIP) <> “” Then
but some time works and some time no works

thanks

All that does is query the DNS server. It doesn’t tell you whether the host is available or not.

ok

thanks