Solved

MS SQL Restore TDE database error

Posted on 2016-11-03
3
27 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)
Comment Utility
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
Comment Utility
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
Comment Utility
TDE is an Enterprise only solution
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

771 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

9 Experts available now in Live!

Get 1:1 Help Now