SQL Server with Mr. Denny

Sep 8 2008   11:00AM GMT

How to configure DTC on Windows 2008



Posted by: mrdenny
SQL, MSCS, RPC, Windows 2008, MS DTC, KB 250367

This post is specifically about setting up DTC on Windows 2008.  If you are looking for the post about setting up DTC on Windows 2003 you’ll want to go to the post “How to configure DTC on Windows 2003“.

The basic idea behind DTC setup in Windows 2008 is very similar to Windows 2003.  DTC needs to be installed and then configured.  To install DTC open the Control Panel, then Programs and Features.  Click on the link to the right which says Turn Windows features on or off.  Eventually the Server Manager will open and finish querying the system for the list of features and roles which are setup.  Click on Add Feature button and select Application Server from the Feature list (you may need to click next to get past the welcome to the wizard screen.  On the screen which tells you about the Application Server click next.  On the next page you can select the services which you be installed as part of this role.  Select the Incoming and/or Outgoing Remote Transactions depending on which one you need.  If SOAP will be used you may need the WS-Atomic Transactions installed.  If so select that as well.  (In this example I’ll check them all.)

Select Roles

Then click next.  If you have selected the WS-Atomic Transactions you’ll be presented with a page to select an SSL cert.  You can either select one, of create a self signed cert, or request one later from a CA.  I selected a self signed cert as I didn’t have one already installed.  Click next, then install.  If you didn’t install WS-Atomic Transactions the next screen will simply have the summary and install button.

It will take a while as Windows is going to install .NET 3.0 as part of this install.  Now is a good time for coffee or a smoke.

After installation is complete click close.

If you click the plus sign next to Roles in the right hand menu you can navigate down to Roles > Application Server > Component Services > Distributed Transaction Coordinator > Local DTC.

Server Manager Right Hand Menu

Right click on Local DTC and select properties, then select the security tab.  This tab looks very similar to the Windows 2003 one.

Check which ever boxes you need to in order to get the DTC setup to match the other servers in your environment.  Be sure to enable “Allow Remote Clients” or client machines won’t be able to access the DTC on this machine.  If you want to be able to remotely enable DTC from another machine you’ll need to check the “Allow Remote Administration”.  It’s been my experience that once DTC is setup and working remove administration probably isn’t that important so I’d say leave that unchecked and simply RDP into the server if it needs to be worked on.  Your screen will look something like this.

Local DTC Properties

When you click OK DTC will prompt you to restart it.  Click yes (unless you want to schedule the restart for another time) and DTC will restart.  You can see the DTC events in the log by selecting the “Application Server” option from the menu on the left.  You are going to want the most recent event to look something like this.

MSDTC started with the following settings:
Security Configuration (OFF = 0 and ON = 1):
Allow Remote Administrator = 0,
Network Clients = 1,
Trasaction Manager Communication:
Allow Inbound Transactions = 1,
Allow Outbound Transactions = 1,
Transaction Internet Protocol (TIP) = 0,
Enable XA Transactions = 1,
MSDTC Communications Security = No Authentication Required,
Account = NT AUTHORITY\NetworkService,
Firewall Exclusion Detected = 0
Transaction Bridge Installed = 1
Filtering Duplicate Events = 1

(Yes, I’m aware of the spelling issues in the error message.  That’s a straight copy and paste from Windows 2008’s event log.)When configuring DTC on a cluster you only need to configure one node.  This is because DTC is a cluster aware service so when you install DTC after setup clustering (or you setup clustering after installing DTC) the DTC service will already be setup as a clustered resource within the first cluster resource group created.  When you configure DTC for network access on a cluster the settings are written to the Quorum drive as well as the system registry which allows both nodes to share the settings.  If you have a cluster and you have to go through a firewall with DTC and have followed KB Article 250367 (I’m sure there is a Windows 2008 version of this KB article somewhere, I just haven’t run across it yet) you will need to have more than 20 ports available to DTC.  This is because when you configure the DCOM protocols to use specific ports you are configuring all of RPC to use those specific ports.  This means that the cluster administrator needs to use these ports as does the Component Services window which monitors for distributed transactions.  When dealing with a cluster it is recommended that you have at least 100 ports open between the machines within the transaction. If you need to setup MS DTC to talk to another DTC coordinator then you will probably need to use the No Authentication Required setting unless they support the other options.  Check with the vendor of the other coordinator to find out.

(These are the settings which you need no matter which version or edition of SQL Server you have installed.)

Denny

Comment on this Post


You must be logged-in to post a comment. Log-in/Register

How to configure DTC on Windows 2008 | Windows 2008 Security  |   Sep 18 2008   10:42PM GMT

[...] Here is the original post: How to configure DTC on Windows 2008 [...]


 

The IT Blog Top 10: March 25, 2009 - ITKE Community Blog  |   Mar 25 2010   3:39PM GMT

[...] How to configure DTC on Windows 2008 by Denny Cherry on SQL Server with Mr. [...]


 

The IT Blog Top 10: April 8, 2010 - ITKE Community Blog  |   Apr 8 2010   1:29PM GMT

[...] How to configure DTC on Windows 2008 from SQL Server with Mr. Denny by Mr. [...]


 

The IT Blog Top 10: April 22, 2010 - ITKE Community Blog  |   Apr 22 2010   1:30PM GMT

[...] How to configure DTC on Windows 2008 by MrDenny on SQL Server with Mr. [...]


 

DivyaPriya  |   Jan 7 2011   10:26AM GMT

Hi Mrdenny, The steps to setup DTC Windows 2008 is very easy to understand and works fine. Screenshots are very helpful. But my only suggestion is you have explained in a paragraph format instead you try to explain in step-by-step process or point-by-point method next time. Good effort thanks for sharing such info with us. Keep it up and post more.

http://gloriatech.com/microsoft-windows-server-2008-setup.aspx


 

Opossum  |   Feb 28 2011   2:02PM GMT

Thanks a lot for this post. It completely fixed my problem. One comment: where it says “Click on Add Feature button “, should be “Click on Add Role button”…but it is easy to figure out by looking at the screenshot below. Thanks!


 

Nianfeng  |   Apr 10 2011   8:24AM GMT

Swarovski crystals are well-known for its fine quality.Recently our Swarovski online store offers wide varieties of Swarovski crystal,expecially Swarovski beads.If you have a desire to buy any beads on sale,catch the chance and action now.


 

Nianfeng  |   Apr 10 2011   8:25AM GMT

The most stylish and high quality Louis Vuitton is the best seller now. If you want to buy Louis Vuitton,just come to our Louis Vuitton Outlet Store, the best Louis Vuitton and the good service we would supply you. Cheap Louis Vuitton for sale now! Back to Louis Vuitton Outlet and choose the Louis Vuitton you prefer.
Every nobby woman all hope to have a world famous brand goods.Louis Vuitton items of Louis Vuitton Outlet Online is one best choice for you. These new design Louis Vuitton that come in unique styles. It is easy to see that Louis Vuitton Online store listed in our Louis Vuitton online that you can find the luxury Louis Vuitton products.


 

MSDTC is failing with remote server « sqlorcl  |   Jun 6 2011   7:44PM GMT

[...] MSDTC services were configured correctly to both servers. There is an excellent tutorial posted by Mr. Denny how to configure the MSDTC services in Windows 2008 server.  Please follow that tutorial and setup [...]