HiveBrain v1.2.0
Get Started
← Back to all entries
patternsqlMinor

Reconnect mirroring server SQL Server 2008 R2

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
2008reconnectsqlmirroringserver

Problem

The failover server has status (Mirror, Disconnected, In recovery) and principal server has status (Principal, Disconnected).

What is the process to reconnect these servers?

Solution

Sometimes restarting the mirroring endpoint on the principal server will resolve this.

To do this use the following T-SQL.

ALTER ENDPOINT Endpoint_Name STATE = STOPPED

ALTER ENDPOINT Endpoint_Name STATE = STARTED


To get the name of the endpoint.

SELECT * FROM sys.endpoints
WHERE type = 4


See KB 2490051 for more details.

Code Snippets

ALTER ENDPOINT Endpoint_Name STATE = STOPPED

ALTER ENDPOINT Endpoint_Name STATE = STARTED
SELECT * FROM sys.endpoints
WHERE type = 4

Context

StackExchange Database Administrators Q#10077, answer score: 6

Revisions (0)

No revisions yet.