Database Mirroring : How to find the TCP port being used for mirroring?
I am interested in finding the TCP port which has been setup on a principal/witness/mirror server.
I have queried the
sys.database_mirroring_endpointsandsys.endpoints systemviews but nowhere does it specify the TCP port.I think the only way to find out is to go to one of the mirrored databases and to right click properties-->Mirroring. I think this is ugly way to find out the TCP port, so if anyones found a better way to find this do tell....
Cheers,
Priyanga

