June 8, 2010 at 2:58 am
The decryption is not working. This is a dev db (sql 2005), and it was restored from the production db backup. After restoring, we tried to run the stored procedure which contains the decryption logic.
The procedure having the following code...
open symmetric key enckey decryption by certificate DS_Encryptcert
the above code through the following error
Msg 15581, Level 16, State 3, Line1
Please create a master key in the database or open the master key in the session before performing this operation.
Pls can any help on this...
Thanks in advance.
Nithi
June 8, 2010 at 3:13 am
Hmmm, I've read about this problem before. I think the code you want is: -
OPEN MASTER KEY DECRYPTION BY PASSWORD = 'password'
ALTER MASTER KEY ADD ENCRYPTION BY SERVICE MASTER KEY
CLOSE MASTER KEY
I've tried looking for the blog I read this on, but can't find it.
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply