• spraocs (10/26/2010)


    I have another question.. Is it possible to use the ENCRYPTION BY PASSWORD temporarily and later rerplace it with the certificate?

    That could be painful but not impossible.

    The symmetric key you would create through ENCRYPTION BY PASSWORD could not be duplicated after if you attempt to recreate it through a certificate.

    You would have to:

    (1) Decrypt all your data using the original symmetric key (the one created through ENCRYPTION BY PASSWORD) and store the decrypted data in a table

    (2) Take a backup of that table for safekeeping

    (3) Create the certificate

    (4) Create a new symmetric key from the certificate

    (5) Encrypt your data using the new symmetric key

    (6) Test encryption by decrypting the data using the new symm key

    __________________________________________________________________________________
    SQL Server 2016 Columnstore Index Enhancements - System Views for Disk-Based Tables[/url]
    Persisting SQL Server Index-Usage Statistics with MERGE[/url]
    Turbocharge Your Database Maintenance With Service Broker: Part 2[/url]