sql >> Base de Datos >  >> RDS >> Sqlserver

Copie la columna cifrada en otra base de datos SQL Server 2012

Pocas cosas:

Podría agregar KEY_SOURCE y IDENTITY_VALUE :

CREATE MASTER KEY ENCRYPTION BY   
PASSWORD = 'Bazalt92!'; 

CREATE CERTIFICATE xxx
    WITH SUBJECT = 'xxx';

CREATE SYMMETRIC KEY xxx
WITH ALGORITHM = aes_256,
KEY_SOURCE = 'My key generation bits. This is a shared secret!',  
IDENTITY_VALUE = 'Key Identity generation bits. Also a shared secret'
ENCRYPTION BY CERTIFICATE xxx;