Saturday, April 16, 2016

How to know when the service was failovered in SQL Cluster

Sometimes unplanned  failover or restart is happened   on SQL services in clustered environment then we need to know when the failover is happened or service is restarted to find this information we can go through the errorlog as stated below.


SQL Server Error log output from xp_readerrorlog extended stored procedure

In the above image of errolog if the host name in both of the messages is the same then the SQL Server Service just restarted on the same host/node.  If the host name is different then SQL Server failed over from that node to a new node.


Ref : ,
https://www.mssqltips.com/sqlservertip/2744/steps-to-check-the-host-name-for-a-clustered-sql-server-instance/

No comments:

Post a Comment