Configure Database Mirroring

  1. On the Principal SQL Server, open SMSS, right-click the database from the Object Explorer, select Tasks, then the Backup Database Window appears. Select the appropriate database from the Source drop-down menu.

  2. Select Full from the Backup Type drop-down menu.

  3. Select the Backup File Path. Then, Save with the <file-name>.bak extension and click OK.

4bf1078f-7093-446f-a1ee-1e4a0078571c.jpg


"Back Up Database" Window

  1. Similarly, select the same database. Right-click and select Tasks, then select Restore Database.

  2. Select Transactional Log from the Backup Type drop-down menu.

  3. Select the Backup File Path, then Save with <file-name>.trn extension. Click OK.

  4. Copy the Backup files to the Mirror SQL Server. Restore the database on the Mirror SQL Server.

  5. On the Mirror SQL Server, open SMSS, right-click on the Database and select Restore Database.

  6. Select the Device radio button and select the newly created Backup Files.

  7. Select the Options and choose RESTORE with NO RECOVERY from the Recovery State drop-down menu. Click OK.

This will restore the database from the Principal SQL Server to the Mirror SQL Server.

  1. On the Principal SQL Server, select the same database. Right-click and select Tasks, and then select Mirror Database.

  2. The Configure Database Mirroring Security wizard appears. Click Next for another two wizards.

  3. Select the Witness Server checkbox.

  4. Click Next on the Principal SQL Server wizard.

f2238338-ad4b-45c9-a020-8317fd4a8494.jpg


Configuring Database Mirroring Security Wizard

  1. Select the Mirror server instance from the drop-down menu. Click Connect and then click Next.

ce2ee6ea-c140-4762-91a0-eed0c26dd76f.jpg


Configuring Database Mirroring Security Wizard

  1. Select the Witness server instance from the drop-down menu, click Connect, and click Next.

eca3c7e0-6aeb-4a8d-9667-5799f06f0b8e.jpg


Configuring Database Mirroring Security Wizard

  1. Enter the Domain Admin Account for Principal, Witness, and Mirror Instance. Click Next.

ea70d3d3-6dc5-4359-b70a-369752a17682.jpg


Configuring Database Mirroring Security Wizard

  1. Verify the details and click Finish.

  2. When the Database Properties pop-up appears, select Start Mirroring.

fb840cd0-d941-4eb0-b7f3-f8b6c2375f0b.jpg


Database Properties Wizard

53e42ac1-0006-41ba-8113-f3c1bb8565b0.jpg


Database Properties Wizard

  1. On the Principal SQL Server, expand the Databases and locate the appropriate database, which shows Principal, Synchronizing after its name.

941f4dd9-39a4-4cea-9513-4be99c4bf4b3.jpg


Database Properties Wizard

  1. Similarly, on the Mirror SQL Server, expand the Databases and locate the appropriate database, which shows Mirror, Synchronized/Restoring after its name.

7a8e4895-478c-488d-90ec-f7b3e88b8c8c.jpg


Database Properties Wizard