views:

57

answers:

1

Hi,

My Linked server is setup correctly , I am able to perform below query.

INSERT INTO [RemoteServer].[Table] SELECT * FROM [LocalServer].[Table]

However when I do the same thing within transaction

BEGIN TRAN INSERT INTO [RemoteServer].[Table] SELECT * FROM [LocalServer].[Table] COMMIT TRAN

I get Errors like

OLE DB provider "SQLNCLI" for linked server "66.70.123.202" returned message "No transaction is active.". Msg 7391, Level 16, State 2, Line 3 The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "66.70.123.202" was unable to begin a distributed transaction.

+1  A: 

Check if MS DTC service is running on both servers and it is configured correctly to allow distribured queries.

Sergey Olontsev
Yes MS DTC runs fine. I am able to query and insert data into remote server without begin transaction. I have "no auth. required" set and allowing all in and out traffic from MS DTC.
Ved
Have you tried BEGIN DISTRIBUTED TRAN instead of BEGIN TRAN?
Sergey Olontsev
Are your firewall configured to allow MS DTC?
Sergey Olontsev
Yes and Yes I have tried both. Still same issue.
Ved