To Test Failover Scenario

  1. Select the database. Right-click and select Tasks, then select Mirror.

913cca0d-2b21-4fa3-9958-380fb5d0f4e1.jpg


Database Properties Wizard

  1. Select Failover and then select Yes on the next Dialogue box that appears.

  2. This will make the current Principal Server a Mirror Server, and vice versa.

  3. Click Refresh to reflect the changes.

  4. On the new Principal Server, run the following query to verify that Database Mirroring with Utimaco HSM is working as expected.

SQL
USE TestDB1
GO
SELECT FirstName, SecondName, CONVERT (varchar, DECRYPTBYASYMKEY (ASYMKEY_ID('RSA2048Key'), CardNumber))
AS 'CardNumber' FROM Customers;
GO