An error occurred during Service Master Key decryption

走远了吗. 提交于 2019-12-25 03:18:13

问题


I am relatively new to SQL so will try explain as best I can.

All servers are SQL Server 2012

I currently have a database which has two Linked Servers to access two other databases. From these 3 databases I have setup 5 view which are referenced in a stored procedure.

When trying to run the stored procedure it was failing, I opened the procedure and tried to run it manually to see what the issue was and received the below error:

Msg 33094, Level 16, State 1, Line 16
An error occurred during Service Master Key decryption

I then tried breaking it down and found that I was receiving this error when trying to reference the views that where using the Linked Servers.

I tried simple selecting the top 1000 rows of these views and strangely enough it will return the values 1 out of 5 times and give the above error the rest of the time.

I've tried Googling the issue but a lot of the issue are referenced when a database has been restored or moved, nothing of the sort has happened with mine.

it was suggested to run the below to see if there was an error and I've had none.

ALTER SERVICE MASTER KEY REGENERATE
  • edit: I've also created a new accounts and relinked both servers in an attempt to test/fix the issue. The accounts are SQL Server Authenticated accounts with db_datareader rights to the databases

Can anyone suggest what I should perhaps look at, I'm a little lost.

Thanks in advance for any help or advice.


回答1:


We have the same setup and had exactly the same problem on some of our servers and we narrowed it down to a recent Windows patch, KB3004375 ("Update to improve Windows command-line auditing"). After removing this security patch, there are no more errors.

I can elaborate more if needed.



来源:https://stackoverflow.com/questions/28542537/an-error-occurred-during-service-master-key-decryption

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!