10-11-2026, 10:57 AM
(10-11-2026, 10:42 AM)pavankumarc Wrote: After restore of db in different server, try running below query replacing the DBname and MasterPassword.
USE [RemoteDesktop];
OPEN MASTER KEY DECRYPTION BY PASSWORD = '<MasterPassword>';
ALTER MASTER KEY DROP ENCRYPTION BY SERVICE MASTER KEY; -- ignore error if absent
ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY;
CLOSE MASTER KEY;
I executed the following SQL statements on the MSSQL instance on Server B, and no errors occurred:
```sql
USE [RocketRemote];
OPEN MASTER KEY DECRYPTION BY PASSWORD = '**********';
ALTER MASTER KEY DROP ENCRYPTION BY SERVICE MASTER KEY; -- ignore error if absent
ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY;
CLOSE MASTER KEY;
```
However, after reconnecting to the database on Server B, the Public Credentials are still displayed as blank.
Please see the attached screenshot for reference.
Additionally, my original server (Server A& Server B) is running Windows Server 2022 with Microsoft SQL Server 2022.

