Unable to begin a distributed transaction

后端 未结 9 1411
走了就别回头了
走了就别回头了 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:43

    Found it, MSDTC on the remote server was a clone of the local server.

    From the Windows Application Events Log:

    Event Type: Error
    Event Source: MSDTC
    Event Category: CM
    Event ID: 4101
    Date: 9/19/2011
    Time: 1:32:59 PM
    User: N/A
    Computer: ASITESTSERVER
    Description:

    The local MS DTC detected that the MS DTC on ASICMSTEST has the same unique identity as the local MS DTC. This means that the two MS DTC will not be able to communicate with each other. This problem typically occurs if one of the systems were cloned using unsupported cloning tools. MS DTC requires that the systems be cloned using supported cloning tools such as SYSPREP. Running 'msdtc -uninstall' and then 'msdtc -install' from the command prompt will fix the problem. Note: Running 'msdtc -uninstall' will result in the system losing all MS DTC configuration information.

    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

    Running

    msdtc -uninstall
    msdtc -install
    

    and then stopping and restarting SQL Server service fixed it.

提交回复
热议问题