What is the best way to check if an instance of Microsoft SQL Server is working? I have a view that spans two instances of Microsoft SQL Server, but before requesting it in a stored procedure, I would like to verify that the second server instance supports the fallback ability to simply query local data.
The second instance is a linked server.
I am currently considering a SQL CLR function that might try to open a connection with a shorter wait time, but I am wondering if it can do something that can be done directly in Transact SQL.
t3rse source
share