Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

Copiare la colonna crittografata in un altro database SQL Server 2012

Poche cose:

Puoi aggiungere 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;