The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction

今天遇到一起关于分布式事务错误的案例,如下所示,执行SQL脚本时报错, 错误信息具体如下所示:

 

[OLE/DB provider returned message: 新事务不能登记到指定的事务处理器中。 ]

OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].

Msg 7391, Level 16, State 1, Procedure UpdatePermissionSystem, Line 18

The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.

 

  检查了数据库选项以及DTC配置,最后发现是事务管理器通信的选项没有选择不要求进行验证(No Authentication Required),而是勾选了要求相互进行身份验证(Mutual Authentication Required)导致. 选择了不要求进行验证 后,重启DTC服务,即可解决这个错误。

 

 

The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction_第1张图片

你可能感兴趣的:(The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction)