Setting Up Database Mirroring or Availability Groups Using Certificates
If you need to set up database mirroring in SQL Server using certificates, or if you need to set up availability groups using certificates, then prepare for a long and tedious step-by-step scripting that you need to do on each one of the nodes. Fortunately, there is a very good resource on the Microsoft documentation: Example: Setting Up Database Mirroring Using Certificates (Transact-SQL).
This page provides explanations and scripts for the 4 steps you need to take:
- Configuring Outbound Connections
- Configuring Inbound Connections
- Creating the Mirror Database
- Configuring the Mirroring Partners
If you follow the directions and execute the scripts in the right order and on the right nodes, then you should be OK. It’s very easy to make mistakes, so don’t do this in the middle of the night or after a shot of Tequila. You need to be focused.
Good luck!
CEO at BitWise | Helping CTOs | We take complicated things and make them simple
6 年Another excuse to write cool admin scripts :)