Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Best way to move an encrypted MS SQL2005 database

Posted on 2009-04-08
2
Medium Priority
?
368 Views
Last Modified: 2013-11-10
Dear experts,

Please can you suggest the best way to move an encrypted database / table - MS SQL 2005 from one server to another?

We have moved it once but the user with the cert doesn't seem to be able to login to the db and i think we might be having the same problem as in this thread...

http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/Q_21962666.html

Many thanks....
0
Comment
Question by:pjordanna
2 Comments
 
LVL 4

Accepted Solution

by:
Veerabhadraiahhv earned 2000 total points
ID: 24106071
hi

try this

--on primary server: backup service master key
backup service master key to file = 'service.key' encryption by password = 'MyPwd';
--on secondary server: restore service master key
restore service master key from file = 'service.key' decryption by password = 'MyPwd';

for more info:
http://www.sqlservercentral.com/articles/SQL+Server+2005+-+Security/3058/
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

972 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