“ALTER DATABASE” failed error when configuring mirroring

Error Message

TITLE: Microsoft SQL Server Management Studio

——————————

Alter failed for Database ‘Mirror’. (Microsoft.SqlServer.Smo)

The ALTER DATABASE command could not be sent to the remote server instance ‘TCP://XXXXXX:2022’. The database mirroring configuration was not changed. Verify that the server is connected, and try again. (Microsoft SQL Server, Error: 1456)

What it Means:

Error 1456 typically indicates that SQL Server Management Studio (SSMS) is unable to reach the mirror server instance, either due to:

  • Network connectivity issues
  • Incorrect endpoint configuration
  • Service not running or firewalled

Suggested Steps

Check Endpoint Configuration

Ensure the ALTER DATABASE SET PARTNER statement has the correct TCP:// endpoint, including the port.

ALTER DATABASE [YourDatabase]
SET PARTNER = 'TCP://YourMirrorServer:5022';

Verify Server Reachability

Use ping or telnet to test TCP connectivity to the mirror.

Confirm SQL Server service is listening on the configured port (5022, or your custom port).

Check Firewall

Ensure the firewall allows inbound traffic on the mirroring port.

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.50.1600&EvtSrc=MSSQLServer&EvtID=1456&LinkId=20476

 

Please Consider Subscribing

Leave a Reply