Android Question Remote sql server is alive.

makis_best

Well-Known Member
Licensed User
Longtime User
Hi.

How I can check if a remote sql server (Mysql, MSSql, Postqree) is alive and running?
I try with a single ping but I think it is not the correct way cuz router reply and not the server.

Any help appreciated.

Thank you
 

aeric

Expert
Licensed User
Longtime User
Try to establish a connection using a connection string or provider
 
Upvote 0

aeric

Expert
Licensed User
Longtime User
@aeric Just to check if my connection is astablish or not?
Some kind of a funtion?
You can make a simple query (eg. SELECT getdate() ) for a interval of let say every minute. If connection lost, error will return.
 
Upvote 0
Top