Skip to main content

Notifications

Enable the Windows Distributed Transaction Coordinator

Windows ServerOne of the line of business applications used by a few clients performs updates to both it’s own database and also the Microsoft Dynamics GP database. It does this using code in SQL stored procedures which use transaction boundaries.

As the updates are between SQL servers, it does this using BEGIN DISTRIBUTED TRANSACTION rather than the usual BEGIN TRANSACTION; updates of this sort are, as stated in the name, distributed and required the Distributed Transaction Coordinator (DTC) Windows component to be enabled, which it is not by default, on both servers.

However, enabling DTC is straightforward and quick to do. Launch Component Services and expand the nodes (Computers » My Computer » Distributed Transaction Coordinator) and right click on Local DTC; select Properties:

Component Services window

Select the Security tab and mark the following checkboxes:

  1. Network DTC Access
  2. Allow Inbound
  3. Allow Outbound
Local DTC Properties

When you click OK you’ll be prompted to restart the service along with a warning that dependent services will also be stopped, but will need to manually restarted:

MSDTC Service message

MSDTC Service

The MSDTC service will be stopped and restarted. All dependent services will be stopped. Applications using MSDTC may need to be restarted to use the new settings. Please press yes to proceed.

Once the DTC service has been restated, click OK to dismiss the message:

MSDTC restarted confirmation message

Once DTC has been enabled on both servers, distributed transactions can be processed.

Read original post Enable the Windows Distributed Transaction Coordinator at azurecurve|Ramblings of an IT Professional


This was originally posted here.

Comments

*This post is locked for comments