简体   繁体   English

服务主密钥解密期间发生错误

[英]An error occurred during Service Master Key decryption

I am relatively new to SQL so will try explain as best I can. 我对SQL比较陌生,因此将尽我所能进行解释。

All servers are SQL Server 2012 所有服务器均为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. 从这3个数据库中,我设置了5个视图,这些视图在存储过程中被引用。

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. 我尝试简单地选择这些视图的前1000行,但奇怪的是,它将在5次中返回值1,并在其余时间内给出上述错误。

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. 我已经尝试使用Google搜索这个问题,但是在恢复或移动数据库时会引用很多问题,而我的情况却没有发生。

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 这些帐户是对数据库具有db_datareader权限的SQL Server身份验证帐户

Can anyone suggest what I should perhaps look at, I'm a little lost. 谁能建议我应该看的东西,我有点迷茫。

Thanks in advance for any help or advice. 在此先感谢您的帮助或建议。

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 "). 我们具有相同的设置,并且在某些服务器上存在完全相同的问题,并且将其范围缩小到最近的Windows补丁KB3004375 (“ 更新以改进Windows命令行审核 ”)。 After removing this security patch, there are no more errors. 删除此安全修补程序后,没有更多错误。

I can elaborate more if needed. 如果需要,我可以详细说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 升级期间发生错误: - An error occurred during the upgrade: 获取错误为“SQL 查询执行期间发生错误” - Getting Error as "Error occurred during SQL query execution " 由于 AntiVirus,登录前握手期间发生错误? - Error occurred during the pre-login handshake, due to AntiVirus? 已成功与服务器建立连接,但在登录前发生错误 - A connection was successfully established with the server, but then an error occurred during the pre-login 如何解决“...执行 xp_cmdshell 期间发生错误”? - How to resolve "...Error occurred during the execution of xp_cmdshell"? 迁移后是否不需要还原SQL服务主密钥即可解密数据? - Restore of SQL service master key not required to decrypt data after migration? TDE是否需要在DR服务器/测试服务器上备份服务主密钥(SMK)和数据库主密钥(DMK) - TDE do we need to backup service master key (SMK) and database master key (DMK) on the DR server /Test Server 由于外键而在创建表期间出错 - Error during the creation of table due to foreign key 创建外键时出错:无效的引用 - Error during foreign key creation: Invalid references 批量插入期间发生错误(您可以禁用批量插入以跳过特定行) - Error occurred during batch insert (you can disable batch insert in order to skip particular rows)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM