Health Check Ping with EF Core and MSSQL
Sometimes it is quite useful to be able to send a query to the MSSQL server independently of its schema; for example to check if the server is principally reachable and the connection information as well as the credentials are correct.
Read Blog Post