Sei sulla pagina 1di 1

What exactly is MSDTC, any when do I need it? - SQL Server with Mr. Denny http://itknowledgeexchange.techtarget.com/sql-server/what-exactly-is-msdtc-any-when-...

BlackBerry Bold 9650 BlackBerry Bold 9700 BlackBerry Curve 3G


Cellular Choice $479.53 Cellular Choice $529.53 Cellular Choice $369.53

Member Login:

e-mail:

password:

LOG-IN
Register

Forgot Password
Search over 100,000 IT Q

Site FAQ

Ask your toughest IT questions and get answers from your peers.

Home > IT Blogs > SQL Server with Mr. Denny > What exactly is MSDTC, any when do I need it?
>>VIEW ALL POSTS

« SQLServerPedia.com/Wiki Launch Party at PASS


Pictures have been taken of planets outside of our little corner of the galaxy »
Nov 13 2008 11:00AM GMT

Posted by: mrdenny


MS DTC

MSDTC (aka Microsoft Distributed Transaction Control) is a piece of software which a lot of people use, but they don’t really
know what it does, or how it works.

MSDTC is used by SQL Server and other applications when they want to make a distributed transaction between more than one
machine. A distributed transaction is simple a transactions which spans between two or more machines. The basic concept is that
machine 1 starts a transaction, and does some work. It then connects to machine 2 and does some work. The work on machine 2
fails, and is cancled. The work on machine 1 needs to then be rolled back.

DTC is for the most part a black box. It just sort of works without much interaction exept for the initial setup.

The only time that DTC needs to be used is when more than one physical computer is going to be involved in an explicet
distributed transaction. If you are going from one instance to another on the same server DTC will not be needed. If you are going
from one instance to another within a cluster you will want to have DTC available as you may have to go between nodes of the
cluster as you have no guarantee that the instances will be on the same physical node.

I hope this helps explain DTC a little bit at least. If you have specific questions about DTC, feel free to post them below and I’ll
try and find the answers for you.

Denny

tweet Comment RSS Feed Email a friend

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

Msakip | Apr 15 2009 6:25PM GMT

hi
i want to learn about sql 2008 failover clustering on windows 2008 server.
what is the order for installation?
do we have to install MS DTC , and then the SQL instance?
or we have to install sql cluster failover instance and then add MS DTC resource?
and do we need to give a different ip to MS DTC?
thanks

mrdenny | Apr 26 2009 6:10PM GMT

Msakip,
It is recommended that you install MSDTC on the cluster first that way SQL Server 2008 doesn’t show a warning during the install.
However MSDTC can be installed afterward.

When using Windows 2003 you don’t need a dedicated IP for MS DTC. Windows 2008 does require a dedicated IP for MS DTC.

Dadio | May 1 2009 1:08AM GMT

Hi Denny,
I am new here and want to thank you for this valuable info.

I have a 2 node cluster….win 2003.


One node is iis server and the second is a file server. both are DC’s.
I have inherited this system configured and do not have much knowledge about it.

I have noticed in the past few months that every time i reboot the iis server (where there is a MS DTC resource)… it fails OK to the
other node.
But when it tries to fail back…..the DTC Fails…which cause the group to fail again to the other node….after few tries…the Cluster
service on the IIS server stops. only if i shutdown the SAN and the 2 nodes…it is being resolved upon rebooting.
Now…i don’t really know if i need this DTC on there since it is not SQL server….but let’s just say…. i want to delete every trace of
this DTC on both nodes and recreate it….
Can you give me some tips on how to do it?
I am shiting myself every time this server needs a restart…

cheers,

Dadio

Timo Kallio | Blogi | Aug 25 2010 6:27PM GMT

[...] koordinaattorina, joka valvoo transaktion toteutumista useamman tietokannan välillä ( aiheesta lisätietoa [...]

ADS BY GOOGLE
Microsoft Server Virtualization - Download White Paper on Hyper-V Download White Paper on Hyper-V Best Practices. Get
Free Report.
www.NetApp.com/IN

Database Comparator - Compare and Synchronize schema and Compare and Synchronize schema and data of SQL Server quickly
www.devart.com

SQL Server Tutorials - Learn More about SQL Server Today. Learn More about SQL Server Today. Database News and Tips
from SSWUG.
www.SSWUG.org

Install Flash Player - All About Install Flash Player All About Install Flash Player Install Flash Player and Much More!
Peeplo.com/Top_Results

CCNA Courses & Institutes - Find Top CCNA Institutes in India. Find Top CCNA Institutes in India. Get Info on
Courses,Admission,Fees.
www.Shiksha.com/CCNA-Courses

mrdenny

Denny Cherry has over a decade of experience managing SQL Server and is currently a Sr. Database Administrator at Phreesia.
Denny holds several Microsoft Certifications as well as being a Microsoft MVP. READ MORE

>> READ MORE ABOUT THE BLOGGERS

SQL-Transact SQL (T-SQL)

News, tips & more

Character string data types (Tutorial)


Data restriction using CHECK constraints
(Tip)
Unconditional and scheduled execution
(Tutorial)
FAQ: Creating and altering SQL Server
tables (FAQ)
T-SQL code to create stored procedures
(Feature)
View more

Vendor content

Are We Getting Any Closer to


Self-Service Business... (White Paper)

Free Software Download DB2 Express-C


with E-Kit to Build... (Software
Download)
Free E-Book: Getting Started with DB2
Application... (eBook)
IBM DB2 E-Kit for Database
Professionals: Extending... (Software
Download)
CA Database Management - 'Do More
With Less' Technical... (Information
Center)
View more

See also

Article, Back To Basics, Backup & recovery, Brent Ozar, Cache, Certifications, Clustering, Config, Database, Database security, DataCenter, Denis Gobo,
Development, EMC, EMC World,
Encryption, Family, In Person Events, Microsoft Windows, PASS, Performance Problems, Query tuning, Quest Software, Replication, SearchSQLServer.com, Security, SecurityFightClub,
Service Broker, SoCal Code Camp, Social Commentary, SoSSE, SQL, SQL PASS, SQL Saturday, , SQL Server 2000, SQL Server 2005, SQL Server 2008, SQL
Server 2008 R2, SQLServerPedia.com, SSWUG, Storage, T/SQL, Twitter, Virtualization, VMware, Webcam, Webcast, Windows 2008, Windows 7

February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007

SearchSQLServer.com
Tek-Tips
Chrissie1's Blog
Denis Gobo
Kevin Kline's Blog
Standard Pixel
Dave Talks Shop
Virtualization Pro: A SearchVMware.com blog
Andrew Karcher's Bits o' Data
SQLServerPedia.com Wiki
Remus Resanu
DuringLunch.com fresh bits.
Coffee And Code
Security Fight Club

Help

RSS feed of SQL Server with Mr. Denny

Community Blog | About Us | Contact Us | FAQ | Terms of Use | DMCA Policy

TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT
purchase decisions and managing their organization's IT projects - with its network of technology-specific Web sites, events and magazines.
All Rights Reserved, Copyright 1999-2011, TechTarget | Read our Privacy Policy
Questions and Answers Index 1 | Questions and Answers Index 2 | IT Topics Index 1 | IT Topics Index 2 | Blogs Index | Blogs Tags

1 of 1 03/02/2011 04:51

Potrebbero piacerti anche