• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 431
  • Last Modified:

How to export DB to other server that is encrypted in SQL 2008 R2?

This is using 2 MS SQL 2008 R2 servers. On DB server 1, there is a database that is encrypted. My boss wants us to move this DB to another server - DB server 2. I am clear about the migration - use export and import; but, the problem is since the db is encryption, what should I do to it ? Please show step-by-step.

Thanks in advance.
0
MezzutOzil
Asked:
MezzutOzil
  • 2
1 Solution
 
MezzutOzilAuthor Commented:
Hi all,

1.      Rename the 2 Key files extention in the folder D:\keys to
                      ExportedPRODDBCert
                      PRODDB_Key

2.      Run the below query in the master DB

                     CREATE CERTIFICATE PRODDBCert
                     FROM FILE='D:\keys\ExportedPRODDECert'
                     WITH PRIVATE KEY(
                     FILE='D:\Keys\RPODDB_Key', DECRYPTION BY PASSWORD='P@ssword')
0
 
MezzutOzilAuthor Commented:
It works
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now