I have two databases . I copied all the data from one table and inserted into another database table . I have created symmetric key on second database but when i try to run the query as follow
OPEN SYMMETRIC KEY SecureSymmetricKey DECRYPTION BY PASSWORD = N'StrongPassword';
select DecryptByKey(columname) as DocSSN from tablename
CLOSE SYMMETRIC KEY SecureSymmetricKey;
but allway return null value.