What's the best way to test SQL Server 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/14
9:15 UTC
Read the original article
Hit count: 205
I need to develop a single routine that will be fired each 5 minutes to check if a list of SQL 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 physical location so having those requirements would be a complex task. Is there a way to simply "ping" from C# one SQL Server?
Thanks in advance!
© Stack Overflow or respective owner