Solved

Linked Server Error SQL Server 2008  R2

Posted on 2011-03-17
3
2,993 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 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