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

Posted on 2012-09-11
Last Modified: 2012-09-13
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.
Question by:MezzutOzil

    Accepted Solution

    Hi all,

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

    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')

    Author Closing Comment

    It works

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    Join & Write a Comment

    CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
    In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
    This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
    Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties

    733 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now