Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

Copie a coluna criptografada para outro banco de dados SQL Server 2012


Poucas coisas:

Você pode adicionar KEY_SOURCE e 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;