Distributed transactions between MySQL and MSSQL

前端 未结 2 866
陌清茗
陌清茗 2020-12-17 02:53

I\'ve tried for nearly a week now to get distributed transactions working. I\'ve some procedures on MSSQL which try to select data from MySQL. My need is to do this in one(!

2条回答
  •  隐瞒了意图╮
    2020-12-17 03:17

    The following steps are required if you want to use XA data sources together with Microsoft Distributed Transaction Coordinator (MS DTC) for handling distributed transactions:

    On Windows XP and Windows Server 2003:

    1. From Control Panel, open Administrative Tools, and then open Component Services. You can also click the Start button, click Run, type dcomcnfg in the Open box, and then press OK to open Component Services.

    2. Expand Component Services, Computers and right-click My Computer, and then select Properties.

    3. Click the MSDTC tab, and then click Security Configuration.

    4. Select the Enable XA Transactions check box, and then click OK. This will cause a MS DTC service restart.

    5. Click OK again to close the Properties dialog box, and then close Component Services.

    6. Stop and then restart SQL Server to ensure that it syncs up with the MS DTC changes.

    On Windows Vista and Windows Server 2008:

    1. Click the Start button, type dcomcnfg in the Start Search box, and then press ENTER to open Component Services. You can also type %windir%\system32\comexp.msc in the Start Search box to open Component Services.

    2. Expand Component Services, Computers, My Computer, and then Distributed Transaction Coordinator.

    3. Right-click Local DTC and then select Properties.

    4. Click the Security tab on the Local DTC Properties dialog box.

    5. Select the Enable XA Transactions check box, and then click OK. This will cause a MS DTC service restart.

    6. Click OK again to close the Properties dialog box, and then close Component Services.

    7. Stop and then restart SQL Server to make sure that it syncs up with the MS DTC changes.

    See also Registry Entries Are Required for XA Transaction Support and validate that the third party driver XA DLL creates these registry entries.

提交回复
热议问题