I read a series of articles on how to configure mirroring on SQL Server 2012. I went through all the steps and everything worked until the last step arrived, which did not work.
When I run this on Principal:
ALTER DATABASE MyDBName SET PARTNER = 'TCP: //1.2.3.4: 5022';
I get this error:
The server network address "TCP: //1.2.3.4: 5022" cannot be reached or does not exist.
When I run the ALTER statement shown above, but in the mirror it works fine.
I tried all the steps in this article.
Important points:
- Primary and Mirror servers are located in different data centers, and not on the same network. VPN is not connected. Do not completely trust each other.
- I can connect to the mirror via SSMS in Primary and run queries. And vice versa.
- I configured certificates on each server to establish trust relationships. Everything worked during setup and configuration, no errors.
- I configured the endpoints on both servers and confirmed that they are active / enabled.
- I opened port 5022 on both servers by configuring the firewall rules for inbound and outbound windows. I can use telnet for Mirror from Principal, and vice versa - the ports look open, no problem.
- In the troubleshooting guide mentioned above, I tried to follow steps 1-6. I have not tried 7, removing the endpoints and recreating them because they look completely valid and active to me.
Looking for some ideas on this.
sql-server sql-server-2012
Herrimancoder
source share