Click here to Skip to main content
15,914,163 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
How to resolve the issue that  operation could not be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction?


I am using linked server and doing Archival of data from a DB in one server to another DB in another DB Server

The DTC is started/ enabled for the same. But while running the query
to fetch data from a Table in Linked Server Database getting the error as below
C#
operation could not be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction


What I have tried:

DId Archival of data from a DB in one server to another DB in another DB Server
The DTC is started/ enabled for the same
But while running the query

SET XACT_ABORT ON
BEGIN DISTRIBUTED TRANSACTION
Select * from Test.Corporate.dbo.Employee

where Test-Linked Server
Corproate-DB
dbo-Schema
Employee-Table Name
Posted
Updated 15-Mar-16 19:13pm
Comments
Herman<T>.Instance 14-Mar-16 6:28am    
Did you check google?
What's the SQL server version?

1 solution

I think you need to install and configure MSDTC (Distributed Transaction Coordinator)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900