Solved

MS SQL Restore TDE database error

Posted on 2016-11-03
3
34 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
  • 2
3 Comments
 
LVL 29

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 29

Expert Comment

by:Rich Weissler
ID: 41900308
TDE is an Enterprise only solution
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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.
Via a live example, show how to setup several different housekeeping processes for a SQL Server.

919 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

16 Experts available now in Live!

Get 1:1 Help Now