What’s the best way to test SQL Server connection programmatically?
I have had a difficulty with the EF when the connection the server is stopped or paused, and I raised the same question. So for completeness to the above answers here is the code. /// <summary> /// Test that the server is connected /// </summary> /// <param name=”connectionString”>The connection string</param> /// <returns>true if the connection … Read more