Solved

Linked Server Error SQL Server 2008  R2

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

There have been several questions about Large Transaction Log Files in SQL Server 2008, and how to get rid of them when disk space has become critical. This article will explain how to disable full recovery and implement simple recovery that carries…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now