Hello!
I encrypted one of my test databases with TDE encryption using this code:
USE master; GO CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<UseStrongPasswordHere>'; go CREATE CERTIFICATE MyServerCert WITH SUBJECT = 'My DEK Certificate'; go USE AdventureWorks2012; GO CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = AES_128 ENCRYPTION BY SERVER CERTIFICATE MyServerCert; GO ALTER DATABASE AdventureWorks2012 SET ENCRYPTION ON; GO
(http://msdn.microsoft.com/en-us/library/bb934049.aspx) and used sys.dm_database_encryption_keys DMV to see the keys that have been created during encryption:
As far as I understand this DMV shows what databases are encrypted by what keys.
On the other hand I know that the master key has been created in the master db and I'd like to make sure it is there.
So is there a way to get a list of the keys present in some db?
Thank you in advance,
Michael