How to backup Symmetric Key in SQL Server?
问题 I use the next code to create SQL Encryption keys CREATE MASTER KEY ENCRYPTION BY PASSWORD = '<Pass>' CREATE CERTIFICATE MyEncryptCert WITH SUBJECT = 'Descryption', EXPIRY_DATE = '2115-1-1' CREATE SYMMETRIC KEY MySymmetricKey WITH ALGORITHM = AES_256 ENCRYPTION BY CERTIFICATE MyEncryptCert How I encrypt data OPEN SYMMETRIC KEY MySymmetricKey DECRYPTION BY CERTIFICATE MyEncryptCert SET @Result = ENCRYPTBYKEY(KEY_GUID('MySymmetricKey'), '<String to encrypt>') CLOSE SYMMETRIC KEY MySymmetricKey