Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Master Password and Credentials After Database Restore
#8
(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.
Reply


Messages In This Thread
RE: Database Master Password and Credentials After Database Restore - by 99016 - 10-11-2026, 10:57 AM



Users browsing this thread: 1 Guest(s)