Solved

Linked Server Error SQL Server 2008  R2

Posted on 2011-03-17
3
2,976 Views
Last Modified: 2012-05-11
I am setting up linked server between two SQL Server Instances of 2008 R2 Std Version and getting the following error.

Executed as user: --------------------. The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "-------------------------------" was unable to begin a distributed transaction. [SQLSTATE 42000] (Error 7391)  OLE DB provider "SQLNCLI10" for linked server "---------------------------------" returned message "The transaction manager has disabled its support for remote/network transactions.". [SQLSTATE 01000] (Error 7412).  The step failed.

Please help.
0
Comment
Question by:Favorable
  • 2
3 Comments
 
LVL 28

Accepted Solution

by:
Ryan McCauley earned 300 total points
ID: 35163057
Are you getting this error as you're attempting to set up the linked server, or when you're trying to execute a remote query once it's already configured? If the latter, I suspect you're executing a stored procedure on the remote server, though in some cases a regular query can cause this.

It sounds like either RPC isn't enabled in the linked server settings themselves, or MSDTC isn't configured properly to allow distributed transactions. Here are the two walk-throughs to fix these items:

MSDTC
http://pongsathonkeng.blogspot.com/2011/02/msdtc-setup.html

RPC/RPC-out
http://www.bidn.com/blogs/BradSchacht/ssis/617/server-%E2%80%98servername%E2%80%99-is-not-configured-for-rpc

Give both of these a try and, if you're still having issues, please post back the query you're running when you get the error.
0
 

Assisted Solution

by:Favorable
Favorable earned 0 total points
ID: 35164954
Actually, before your post I did some other research to findout MSDTC was configured. The Sys Admin came to get it fixed and the linked generated a similar error this time was (no transaction is active). I immediately thought to change Enable distribution transaction RPC on linked server options from true to false and my stored prod executed successfully.
Thanks, though your post was late! Lol!!!
0
 

Author Closing Comment

by:Favorable
ID: 35196568
Issue got resolved before solution was posted!
Thanks!
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is basically a blog post I wrote recently. I've found that SARGability is poorly understood, and since many people don't read blogs, I figured I'd post it here as an article. SARGable is an adjective in SQL that means that an item can be fou…
Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question