Solved

MS SQL Restore TDE database error

Posted on 2016-11-03
3
46 Views
Last Modified: 2016-11-24
I'm trying to restore a TDE encrypted database using MS SQL Server Management Studio (Express) on my local PC.  Do I need some type of super user or admin login?  I'm a very novice SQL guy, but I have restored databases to this PC with this installation before, just not TDE encrypted ones.  I am getting this error:  The certificate, asymmetric key, or private key file is not valid or does not exist; or you do not have permissions for it.

I followed these steps:

use master
GO

select * from sys.symmetric_keys
GO

CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'Infantry'
GO

select * from sys.symmetric_keys
GO

CREATE CERTIFICATE CRMLTOP_wimmersales_c28e1a6b616743cd8a5d33bb400b0d1f
FROM FILE = 'C:\Users\steve.t\Desktop\CRM\CRMLTOP_dimmersales_c28e1a6b616743cd8a5d33bb400b0d1f.pfx_1.cer'
WITH PRIVATE KEY (FILE = 'C:\Users\steve.t\Desktop\CRM\CRMLTOP_dimmersales_c28e1a6b616743cd8a5d33bb400b0d1f.pfx_1.pvk',
DECRYPTION BY PASSWORD = 'CRMLTOP_dimmersales_c28e1a6b616743cd8a5d33bb400b0d1f')
0
Comment
Question by:AxeTracks
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 30

Accepted Solution

by:
Rich Weissler earned 500 total points (awarded by participants)
ID: 41873813
My first thought is that TDE is an Enterprise Feature.  I wouldn't expect you to be able to restore the database to a local (Express) instance.  I suspect would be that you'd need an Enterprise (or Developer or Evaluation) instance, ideally at an identical SQL version, but absolutely not at a lower version.
0
 

Author Comment

by:AxeTracks
ID: 41875112
I have found out that TDE is Enterprise only, and I am using Express.  It's not possible to restore a TDE on Express.
0
 
LVL 30

Expert Comment

by:Rich Weissler
ID: 41900308
TDE is an Enterprise only solution
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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

730 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