Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Restoring Database to different instance with encryption problems

$
0
0

Hello All!

       I am having an issue of reading an encrypted table after restoring the table to a different server and instance.

Here is my process thus far:

Performed Full backup of database

Restored database backup on new instance (The new instance is using the same Service account as the old instance)

After restoring the database, I checked to make sure the database master key shows encrypted by server, but it does not

Running the following query on each database:

select d.name,d.is_master_key_encrypted_by_server

 fromsys.databasesASd

On the old instance, the database is_master_key_encrypted_by_server = 1
On the new instance, the database is_master_key_encrypted_by_server = 0

Does anyone know why this is?

If I run the select * fromsys.symmetric_keyson each database, the database master key and the symmetric key shows up for each database instance.

Is there a reason why this is different?

I know the SMK encrypts the DMK which then is used to encrypt the certificate that encrypts symmetric key. 
Therefore, should I export the SMK from the from the old instance and import it into the new instance?  Then open the master key and regenerate the SMK on the server so that I can open the encrypted table on the new instance?

Thanks!

 


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>