Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

MS SQL Restore TDE database error

Posted on 2016-11-03
3
Medium Priority
?
78 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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
In this article, I’ll look at how you can use a backup to start a secondary instance for MongoDB.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

618 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