Unable to begin a distributed transaction

后端 未结 9 1386
走了就别回头了
走了就别回头了 2020-11-28 23:18

I\'m trying to run SQL against a linked server, but I get the errors below :

BEGIN DISTRIBUTED TRANSACTION
SELECT TOP 1 * FROM Sessions


OLE DB provider &quo         


        
9条回答
  •  独厮守ぢ
    2020-11-28 23:27

    I was able to resolve this issue (as others mentioned in comments) by disabling "Enable Promotion of Distributed Transactions for RPC" (i.e. setting it to False):

    As requested by @WonderWorker, you can do this via SQL script:

    EXEC master.dbo.sp_serveroption
         @server = N'[mylinkedserver]',
         @optname = N'remote proc transaction promotion',
         @optvalue = N'false'
    

提交回复
热议问题