July 11, 2013 at 11:15 pm
Being unaccustomed of Encryption features, made me read about the TDE and what it takes to move the TDE protected database before marking the correct answer.
Thanks Steve, it is always feels good when we learn new things 🙂
~ Lokesh Vij
Link to my Blog Post --> www.SQLPathy.com[/url]
Follow me @Twitter
July 12, 2013 at 12:56 am
Nice question Steve, definately learned something.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
July 12, 2013 at 4:20 am
Nice question!
What if you already have a master key that is used by a certificate aimed for another database (dbA) on the instance you're moving the dbB?
Just for clarification.
I think you should drop the dbA certificate (backup before) using the old master service key, then drop the master key and recreate with another password (same as for dbB certificate), and then create the new certificate from the cert and key files you moved on the new instance, using the new master key?
Regards,
IgorMi
Igor Micev,My blog: www.igormicev.com
July 12, 2013 at 6:15 am
Learnt something new - not the answer that I was expecting.
July 12, 2013 at 6:24 am
Foiled again!
Interestingly, what is on MSDN and what is in BOL is not the same! Though, I suspect what is on MSDN to be more accurate...
Great question, I have definitely spent 30 minutes delving into something I have never touched on in SQL Server.
Thanks!
July 12, 2013 at 6:25 am
I must be missing something. I'm sure someone can put me straight. This link says that you need to restore both the DEK and the certificate http://msdn.microsoft.com/en-us/library/bb934049.aspx. I chose the first answer because of this.
When enabling TDE, 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. The encrypting certificate or asymmetric should be retained even if TDE is no longer enabled on the database. Even though the database is not encrypted, the database encryption key may be retained in the database and may need to be accessed for some operations. A certificate that has exceeded its expiration date can still be used to encrypt and decrypt data with TDE.
Thanks,
Tom
July 12, 2013 at 6:51 am
Nice Question. Actaully I did TDE enabled database on different SQL Server instance. I just took the backup of CERTIFICATE and Privatekey, and restore them on new SQL Server instance.
Best,
Naseer
Best,
Naseer Ahmad
SQL Server DBA
July 12, 2013 at 7:19 am
logitestus (7/12/2013)
Foiled again!Great question, I have definitely spent 30 minutes delving into something I have never touched on in SQL Server.
+1 Agreed. I have learned something new today. Thanks Steve!
July 12, 2013 at 7:36 am
This was removed by the editor as SPAM
July 12, 2013 at 7:38 am
OCTom (7/12/2013)
I must be missing something. I'm sure someone can put me straight. This link says that you need to restore both the DEK and the certificate http://msdn.microsoft.com/en-us/library/bb934049.aspx. I chose the first answer because of this.When enabling TDE, 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. The encrypting certificate or asymmetric should be retained even if TDE is no longer enabled on the database. Even though the database is not encrypted, the database encryption key may be retained in the database and may need to be accessed for some operations. A certificate that has exceeded its expiration date can still be used to encrypt and decrypt data with TDE.
Thanks,
Tom
I selected the same answer for the same reason.
Is the private key mentioned referring to the DEK, and is it backed up automatically with the certificate?
July 12, 2013 at 7:50 am
This was removed by the editor as SPAM
July 12, 2013 at 8:57 am
Many of the encryption concepts in SQL Server are pretty opaque to me. I thought the certificate was useless without its private key file. But can you create a backup of the certificate tha includes the private key file? the documentation pointed to seems to suggest this.
July 12, 2013 at 9:11 am
MSDN confused me on this one. Oh well, learned something new. Thanks for the question Steve!
July 12, 2013 at 9:16 am
OCTom and sestell1
+1 I chose the same answer, and at least we are erring on the side of caution!
Steve, great question which cleared up my misunderstanding of the need for other items besides the certificate to be available for a restore operation.
Viewing 15 posts - 1 through 15 (of 39 total)
You must be logged in to reply to this topic. Login to reply