Click here to Skip to main content
13,763,340 members
Rate this:
Please Sign up or sign in to vote.
See more:

i have used follwing link to tranfer data from different servers.
how to connect different server database tabels[^]

But after i done that i was getting this error:
The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "" was unable to begin a distributed transaction.
OLE DB provider "SQLNCLI" for linked server "" returned message "The partner transaction manager has disabled its support for remote/network transactions.".

Then i configured of MS DTC in addmistrative tool then also i'm getting this error which is one above.
please reply with an example.
Posted 24-Oct-11 2:38am
ks ravi347
Updated 24-Oct-11 4:42am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

check below

DECLARE @t_Cnt int
SELECT TOP 1 @t_Cnt=1 FROM Master.dbo.sysservers Where Srvname= 'Patron'
IF(@t_Cnt<>1) --No Records Found then Create Link to Server

--Create Link to the another server
EXEC Master.dbo.sp_addlinkedserver
@server = 'MyServer',
@srvproduct = 'sqlserver',
@provider = 'SQLOLEDB',
@datasrc = '' --MyServer IP Address

--Create Login Credentitals to The MyServer
EXEC Master.dbo.SP_ADDLINKEDSRVLOGIN 'MyServer', 'false', null, 'sa', 'sa'

--Create RPC to Server
EXEC Master.dbo.sp_serveroption @server='MyServer', @optname='rpc', @optvalue='true'
EXEC Master.dbo.sp_serveroption @server='MyServer', @optname='rpc out', @optvalue='true'


--to execute procedure
EXEC MyServer.DATABASENAME.dbo.sp_GetSupplyList

--to execute query

--Delete the Server link and Login Credentials
--EXEC Master.dbo.sp_dropserver 'MyServer', 'droplogins'

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web04-2016 | 2.8.181112.3 | Last Updated 27 Oct 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100