When trying to setup distributed transactions (MSDTC) there are essentially 2 things you need to do.
First, you need to enable connections by running Component Services MMC
Second you need to allow access through the firewall
But if you are doing this on a “client OS” like Windows 7, 8, or 10, trying to get your dev machine to talk to your SQL Server on the network for example, you might run into additional problems.
If you run the DTCPing ( https://www.microsoft.com/en-us/download/details.aspx?id=2868 ) MSDTC trouble shooting tool and you get “Access is denied”, like this:
Invoking RPC method on (compname)
Problem:fail to invoke remote RPC method
Error(0x5) at dtcping.cpp @303
–>RPC pinging exception
–>5(Access is denied.)
RPC test failed
To fix this issue follow these steps (https://blogs.msdn.microsoft.com/puneetgupta/2008/11/12/troubleshooting-msdtc-issues-with-the-dtcping-tool/)
- Click Start, click Run, type Regedit, and then click OK.
- Locate and then click the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT
- On the Edit menu, point to New, and then click Key.
- Note If the RPC registry key already exists, go to step 5.
- Type RPC, and then press ENTER. Click RPC.
- On the Edit menu, point to New, and then click DWORD Value.
- Type RestrictRemoteClients, and then press ENTER.
- Click RestrictRemoteClients.
- On the Edit menu, click Modify.
- In the Value data box, type 0, and then click OK.
- Note To enable the RestrictRemoteClients setting, type1.
- Close Registry Editor and restart the computer.