Starting, Stopping, and Configuring the Microsoft Distributed Transaction Coordinator

Microsoft Distributed Transaction Coordinator (MS DTC) is a transaction manager that makes it possible for client applications to work with multiple sources of data in one transaction.

When a distributed transaction spans two or more servers, the servers coordinate the management of the transaction using MS DTC. When a distributed transaction spans multiple databases on a single server, SQL Server manages the transaction internally.

SQL Server applications can call MS DTC directly to start an explicit distributed transaction. Distributed transactions can also be started implicitly by using one of the following methods:

  • Calling stored procedures on remote servers running SQL Server

  • Updating data on multiple OLE DB data sources

  • Enlisting remote servers in a transaction

If you work with transactions under any of these scenarios, you will want to have DTC running on the server, and you will probably also want DTC to start automatically when the server starts. As with SQL Server itself, DTC runs as a service. This service is named Distributed Transaction Coordinator. Unlike the SQL Server service, only one instance of the MS DTC service runs on a computer, regardless of how many database server instances are available. This means that all instances of SQL Server running on a computer use the same transaction coordinator.

You can view the current state of the Distributed Transaction Coordinator in SQL Server Management Studio by connecting to the server’s Database Engine. In Object Explorer, expand the server and Management nodes. If the service is running, you will see a green circle with a right-facing triangle in it (similar to a play button). If the service is stopped, you will see a red circle with a square in it (similar to a stop button). You can control the DTC service with Computer Management. Follow these steps:

  1. Start SQL Server Management Studio by clicking the Start button, pointing to Programs or All Programs, Microsoft SQL Server 2005 and then selecting SQL Server Management Studio.

  2. By default, you are connected to the local computer. To connect to a remote computer, right-click the Computer Management node, and then select Connect To Another Computer. In the Select Computer dialog box, choose Another Computer, and then type the name of the computer. The name can be specified as a host name, such as CorpSvr04, or a fully qualified domain name, such as corpsvr04.cpandl.com.

  3. Expand Services And Application, and then select Services. Right-click Distributed Transaction Coordinator, and then choose Properties. You can now manage MS DTC.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset