SQL Server Error 1206 occurs when the Microsoft Distributed Transaction Coordinator (MS DTC) is either disabled, improperly configured, or blocked by a firewall, preventing a distributed transaction from completing. To fix this, you must enable the Distributed Transaction Coordinator service and configure its security settings to allow network access between the SQL Server and the application or other servers involved in the transaction.
What You'll Need
- Administrative access to the Windows Server hosting the SQL Server instance.
- Administrative access to any remote servers involved in the distributed transaction.
- Network connectivity between the servers.
- Knowledge of the firewall ports currently open on your network.
Step-by-Step
- Verify the MS DTC Service Status
Press the Windows Key + R, typeservices.msc, and press Enter. In the Services window, locate the Distributed Transaction Coordinator service. Check the status column. If it is not "Running," right-click the service and select Start. To ensure this does not happen after a reboot, right-click the service, select Properties, and change the Startup type to Automatic. Note that labels may differ slightly depending on your version of Windows Server. - Open Component Services
Press the Windows Key + R, typedcomcnfg, and press Enter. This opens the Component Services console. In the left-hand navigation pane, expand the tree by navigating to Component Services > Computers > My Computer > Distributed Transaction Coordinator. - Access Local DTC Properties
Right-click on Local DTC and select Properties. This will open the Distributed Transaction Coordinator Properties dialog box, which is the primary area for resolving Error 1206. - Configure Security Settings
Click on the Security tab. This tab controls how the DTC communicates across the network. For most distributed environments, the following settings are required:- Check Network DTC Access: This allows the server to participate in transactions originating from other machines.
- Check Allow Inbound: This allows remote servers to start transactions on this machine.
- Check Allow Outbound: This allows this machine to start transactions on remote servers.
- Select No Authentication Required: In many cross-domain or complex network environments, Mutual Authentication fails due to DNS or Active Directory issues. Selecting "No Authentication Required" is the most compatible setting to resolve connectivity errors, though you should consult your security policy first.
- Confirm and Restart
Click OK to apply the changes. A warning message will appear stating that the MS DTC service must be restarted for the changes to take effect. Click Yes. The system will automatically restart the service, which may briefly interrupt any active distributed transactions. - Configure Windows Firewall
If the error persists, the firewall is likely blocking the DTC traffic. Open the Control Panel > System and Security > Windows Defender Firewall > Allow an app or feature through Windows Defender Firewall. Click Change settings, then find Distributed Transaction Coordinator in the list. Ensure both the Private and Public checkboxes are checked. If you are using a hardware firewall or a third-party software firewall, ensure that RPC (Remote Procedure Call) ports are open, as DTC relies on the RPC Endpoint Mapper (Port 135) and a dynamic range of ports for communication. - Test the Connection
Return to your SQL Server Management Studio (SSMS) and re-run the query or process that triggered Error 1206. If the transaction now completes without the error, the configuration is successful.
Common Mistakes
One of the most frequent mistakes is configuring MS DTC on the SQL Server but forgetting to apply the exact same settings on the application server or the second database server. Distributed transactions are a "handshake" process; if one side allows outbound traffic but the other side blocks inbound traffic, the transaction will fail with Error 1206. Always ensure symmetry in your DTC security settings across all participating nodes.
Another common error is overlooking the "No Authentication Required" setting. Many administrators leave it on "Mutual Authentication," assuming the servers are in the same domain. However, if the servers are in different domains, different workgroups, or have DNS suffix mismatches, Mutual Authentication will fail silently, leading to a timeout or a 1206 error. Unless you have a strictly configured Active Directory environment with perfect DNS resolution, "No Authentication Required" is the standard troubleshooting path.
Finally, some users attempt to fix the error by simply restarting the SQL Server service. While a restart can clear temporary locks, Error 1206 is a configuration and connectivity issue. Restarting the database engine does not change the Windows OS-level DTC settings, meaning the error will return immediately upon the next distributed transaction attempt.
Tips
To avoid the overhead of MS DTC entirely, evaluate if you truly need distributed transactions. If you are performing operations across two different databases on the same physical server, you can often use a single transaction without involving the DTC. If you are using Linked Servers, consider using SET XACT_ABORT ON in your T-SQL scripts. This ensures that if a transaction fails, it is rolled back immediately, which can sometimes prevent the DTC from hanging in an uncertain state.
For those managing high-availability environments, ensure that the DTC is configured identically on all nodes of a Failover Cluster. If the DTC is not configured correctly on the passive node, the application will work fine until a failover occurs, at which point the system will suddenly start throwing Error 1206, causing an unexpected production outage.
Keep a record of the specific ports being used by your RPC dynamic range. By default, Windows uses a wide range of ports for RPC. You can restrict this range in the registry to make firewall management easier. This prevents you from having to open thousands of ports and allows for a more secure, tightened firewall configuration.
Troubleshooting
If you have followed the steps above and still encounter Error 1206, the first step is to check the Windows Event Viewer. Navigate to Windows Logs > System. Look for errors sourced from "MSDTC." These logs often provide a more specific reason for the failure, such as "Communication with the remote coordinator failed" or "Access denied." If you see "Access denied," it is a strong indicator that the Authentication settings (Mutual vs. No Authentication) are mismatched between the servers.
If the Event Viewer shows a timeout, check your DNS settings. Try pinging the remote server by its Fully Qualified Domain Name (FQDN) and then by its IP address. If the IP works but the FQDN does not, the DTC will fail because it relies on the NetBIOS name or FQDN to identify the transaction coordinator. Adding the remote server's IP and hostname to the local hosts file (located in C:\Windows\System32\drivers\etc\hosts) is a quick way to test if DNS is the culprit.
In extreme cases where the DTC becomes corrupted, you may need to reinstall it. This is a destructive action for any pending transactions. To do this, open an elevated Command Prompt and run msdtc -uninstall, followed by msdtc -install. After reinstalling, you must go back through the Component Services steps to re-enable Network DTC Access and the Inbound/Outbound settings, as the installation resets everything to default.
Frequently Asked Questions
What exactly is a distributed transaction?
A distributed transaction is a single logical unit of work that spans multiple resource managers, such as two different SQL Server instances or a SQL Server and a Message Queue. The MS DTC ensures that either all parts of the transaction succeed (commit) or all are rolled back, maintaining data integrity across different servers.
Does MS DTC affect performance?
Yes, distributed transactions are significantly slower than local transactions. This is because they require a "two-phase commit" protocol, which involves multiple rounds of network communication to ensure all servers are ready to commit before the final command is sent.
Can I use MS DTC with Azure SQL Database?
Azure SQL Database (PaaS) does not support MS DTC in the same way that SQL Server on a VM or on-premises does. For cloud-native distributed transactions, you typically use Elastic Transactions or implement the Saga pattern at the application level to manage consistency.
Why is "No Authentication Required" recommended for troubleshooting?
It removes the complexity of Kerberos and NTLM authentication. In many corporate networks, firewall rules or domain trust issues prevent the servers from verifying each other's identity. Turning off authentication allows the transaction to proceed based on network connectivity alone.
Is Error 1206 the same as a deadlock?
No. A deadlock occurs when two processes hold locks that the other needs. Error 1206 is a communication and configuration failure. While both result in a transaction failing, the cause of 1206 is external to the SQL query logic and resides in the Windows OS configuration.
Do I need to restart the whole server after changing DTC settings?
No, a full server reboot is not required. Only the Distributed Transaction Coordinator service needs to be restarted. This is handled automatically when you click "OK" in the Component Services properties window.