I was setting up database mirroring, here is my model:
- Pricipal database instance in server1
- Mirror database instance in server2
- Witness database instance in server2
I was setting up mirroring with certificate, it is ok when I set Principal and Mirror see together.
But when I add Witness for Principal, I got an error:
"The ALTER DATABASE command could not be sent to the remote server instance 'TCP://xxx:5024'. The database mirroring configuration was not changed. Verify that the server is connected, and try again."
Notice that I was setting up the correct certificate for Principal, Mirror and Witness And the Principal can telnet to Witness via 5024 port.
I have been searching on the internet for two weeks but it seems there is no complete answer.