Try too Regenerate the service master key by using the Transact-SQL statement
ALTER SERVICE MASTER KEY FORCE REGENERATE
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Dear All,
We were trying to create Database Master key for one of the User database, but its getting failed with below error.
"An Error occured During Master key Decryption"
We are not sure above Server Master Key Password also. Any help would be appreciated.
Try too Regenerate the service master key by using the Transact-SQL statement
ALTER SERVICE MASTER KEY FORCE REGENERATE
The FORCE option causes the key regeneration process to continue even if the process cannot retrieve the current master key, or cannot decrypt all the private keys that are encrypted with it. Use FORCE only if regeneration fails and you cannot restore the service master key by using the RESTORE SERVICE MASTER KEY statement.
The service master key is the root of the SQL Server encryption hierarchy. The service master key directly or indirectly protects all other keys and secrets in the tree. If a dependent key cannot be decrypted during a forced regeneration, the data the key secures will be lost.
Please refer to this document: https://learn.microsoft.com/en-us/sql/t-sql/statements/alter-service-master-key-transact-sql?view=sql-server-ver16
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".