What's the best way to test MSSQL connection programmatically?
Posted
by backslash17
on Stack Overflow
See other posts from Stack Overflow
or by backslash17
Published on 2010-03-13T21:15:33Z
Indexed on
2010/03/13
21:25 UTC
Read the original article
Hit count: 172
I need to develop a single routine that will be fired each 5 minutes to check if a list of MSSQL servers (10 to 12) are up and running.
I can try to obtain a simple query in each one of the servers but this means that I have to create a table, view or stored procedure in every server, even if I use any already made SP I need to have a registered user in each server too. The servers are not in the same phisical location so having those requirements would be a complex task. Is there a way to simply "ping" from c# one MSSQL server?
Thanks in advance!
© Stack Overflow or respective owner