FIX: No automatic failover after database mirroring stops unexpectedly in SQL Server

Se aplica a: SQL Server 2012 Business IntelligenceSQL Server 2012 DeveloperSQL Server 2012 Enterprise

Symptoms


Assume that you set up a database mirroring session in SQL Server 2012,2014 or 2016. You add a witness to support automatic failover. In a rare situation, the mirroring session may stop, and then the data is no longer synchronized. Additionally, an automatic failover doesn’t occur as expected.

Workaround


To work around this issue, resume the mirroring session. To do this, type each of the following Transact-SQL statements, and then press Enter after each statement:

ALTER DATABASE database_name SET PARTNER SUSPEND
GO
ALTER DATABASE database_name SET PARTNER RESUME
GO

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

References


Learn about the terminology that Microsoft uses to describe software updates.