Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 DISTRIBUTED TRANSACTIONS with OPENROWSET

Author  Topic 

siva237
Starting Member

3 Posts

Posted - 2011-02-23 : 04:19:15
Hi All,
I have a distributed transaction which contains openrowset as shown below

set xact_abort on
begin tran

update opr
set tno = 5
from openrowset('SQLOLEDB','SERVER=serverinstance;UID=userid;PWD=password','select * from databasename.dbo.test123') opr

rollback tran

I have been encountering with below error:

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


I have enable MSDTC on both the servers.But still I am getting above error.The firewall has an exception to port 135 and msdtc.exe program.

Please check this and help me out to resolve this issue.

Thanks in advance and expedite response on this is highly appreciated.

Regards,
Siva Prasad


v.siva prasad
   

- Advertisement -