TDENEWdoc
TDENEWdoc
Create certificate
Step2:
USE master;
GO
USE DynamicsAX
GO
Warning: The certificate used for encrypting the database encryption key has not
been backed up. You should immediately back up the certificate and the private
key associated with the certificate. If the certificate ever becomes unavailable
or if you must restore or attach the database on another server, you must have
backups of both the certificate and the private key or you will not be able to
open the database.
STEP4:
Enable TDE on the user database
USE [AdventureWorks2016]
GO
GO
Step5:
go
TO FILE='C:\SQLTesting\TDECERT1CERT\TDECERT1. cer'
encryption by password='Test@1234')
After this, try to restore the database again. The restore will complete successfully.
The password provided here is different from the one we used in the source server since we are
USE master
GO
CREATE MASTER KEY ENCRYPTION BY PASSWORD = 'D1ffPa$$w0rd'
After a master key has been created, create a certificate by importing the certificate we created
earlier. Here the ‘Decryption By Password’ parameter is same as that provided to export the certificate
to a file