How I detect fast if an MSSQL server is running?
My present solution is this:
But it's slow. (Slower then 2 seconds, maybe 10-15 sec)
Do you know a method to do this faster?
Any help would be appriciated.
Máté
My present solution is this:
Code:
dim conn as New SQLClient.SQLConnection("blabla;Connect Timeout=2;blabla2")
dim running as boolean
try
conn.open
running = True
catch ex as Exception
running = False
end try
...
But it's slow. (Slower then 2 seconds, maybe 10-15 sec)
Do you know a method to do this faster?
Any help would be appriciated.
Máté