I have a service that monitors SQL Server's always on Group status. When I bring down my SQL Server setup for planned downtime testing, my application keeps getting errors as follows
"SHUTDOWN is in progress. (Err:6005, State:2 Severity:14); "
I do not see this error in my monitoring script, so the monitoring service feels everything is ok.
Is there a way where I can detect that the Shutdown has started on the server by using TSQL.