2

我试过这个:

insert into MyTable (col1, col2... coln)
exec remoteServer.remoteDB.dbo.StoredProcedure.

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

本地服务器是 SQL 2000,远程是 2008。

任何的想法?当我尝试执行存储过程时,事情运行顺利,我得到了结果SELECT所以问题在于复制。

我已经尝试启用 MSDTC 及其配置(如此处所示

4

1 回答 1

1

假设您还没有尝试过,请尝试将此标注包装在DISTRIBUTED TRANSACTION

http://msdn.microsoft.com/en-us/library/ms188386.aspx

BEGIN DISTRIBUTED TRAN

...

COMMIT TRANSACTION
于 2012-09-18T16:44:41.833 回答