Solved

Linked Server Error SQL Server 2008  R2

Posted on 2011-03-17
3
3,029 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
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…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 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