Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Restoring an Encrypted Database - SQL Server

RSS
Modified on Fri, May 02, 2014, 9:45 AM by Administrator Categorized as SQL Server

Overview

This article explains the extra steps you need to take when restoring an encrypted database. You MUST have the password for the master key in order to do this.

Procedure

After restoring your BAK file, run the following script against the encrypted database, using the password for your master key,

OPEN MASTER KEY DECRYPTION BY PASSWORD = 'MyPassword'
go
ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY
go
close master key
go

ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2024, Patrick Jasinski.