CREATE DATABASE ENCRYPTION KEY
defines a database encryption key
What changes
- Input
- catalog
- Output or change
- security catalog: database encryption key
Syntax at a glance
CREATE DATABASE ENCRYPTION KEY WITH ALGORITHM = { AES_128 | AES_192 | AES_256 | TRIPLE_DES_3KEY } ENCRYPTION BY SERVER { CERTIFICATE Encryptor_Name | ASYMMETRIC KEY Encryptor_Name } [ ; ]
Work example
Transparent Data Encryption needs a database encryption key protected by a certificate or asymmetric key.
Confirm the protector backup is stored away from the database backup and test the restore dependency in a lab.
Check your work A recovery operator can restore the protector before opening the encrypted database.
Open Microsoft Learn for full syntax, permissions, and details for your version.