配置DTC:The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "test" was unable to begin a distributed transaction.

出现这个错误时因为这台服务器,或者链接服务器那台服务器没有配置好MS DTC(Microsoft Distributed Transaction Coordinator  微软 分布式事务协调器)。

首先确保开启了 'remote access'、 'remote admin connections'、 'remote proc trans'选项

EXEC sp_configure 'show advanced options', 1;
go
RECONFIGURE;
go
EXEC sp_configure 'remote access', 1;
go 
RECONFIGURE;
go
EXEC sp_configure 'remote admin connections', 1;
go
RECONFIGURE;
go
EXEC sp_configure 'remote proc trans', 1;
go
RECONFIGURE;

配置DTC步骤

Step 1:Run->dcomcnfg 直接跳出组件服务

Step2: 进入界面点击(Console Root->Componet Services->Computers->My Computer->Distributed Transaction Coordinator-> Local DTC)

                       

Step3: 右键单击"Local DTC"的属性,就可以看到“Tracing”、“Logging”、“Security”三个面板。

如下所示,设置“Security”下的属性

原文地址:https://www.cnblogs.com/michelledawm/p/7155234.html