Restored backup database and now encryption doesn't work.

  • After an issue with my database I did a full backup restore of my database that I backed up the previous day. After the restore I got the following error whenever I tried to perform any decrypt functions:

    Please create a master key in the database or open the master key in the session before performing this operation.

    I tried the following command:

    OPEN MASTER KEY DECRYPTION BY PASSWORD = 'my password';

    but I end up with the following error:

    Msg 15313, Level 16, State 1, Line 1

    The key is not encrypted using the specified decryptor.

    Is there any way I can decrypt my data? Not sure why I can't open my MASTER Key.

    Any help would be greatly appreciated.

  • You need to create the encrytion key from the backup of the encrytion key from the source DB server.

    Please check the following article:

    http://www.sqlservercentral.com/articles/Transparent+Data+Encryption/66334/

    "More Green More Oxygen !! Plant a tree today"

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply