The database encryption key is a 256-bit symmetric key that is created in the master database and used to encrypt a database.
create encryption key keyname
[for algorithm]
for database encryption
[with
{[master key]
[key_length 256]
[init_vector random]
[[no] dual_control]}
sp_configure 'enable encrypted columns', 1 create encryption key master with passwd "testpassword" set encryption passwd 'testpassword' for key master create encryption key dbkey for database encryption