Quantcast
Viewing all articles
Browse latest Browse all 24688

Updates on Linked server cannot perform under T-Sql Transaction

Hi all,

I've SSIS package which is developed using BIDS 2008.It's uses T-Sql transaction due some platform limitations wecannot use SSIS native transaction . So far all these are working fine.But now we addlinked server to our source db server.(that means our Source DB server in now linked server with Destination DB Server).And I wrote some SP which isstored in source DB server and It has updates statements for destination db server table records.But when we execute the package it get some error saying like this...

==========================================================================================

OLE DB provider "SQLNCLI10" for linked server "XXX" returned message "No transaction is active.".

Executing the query "EXEC UpdateStatusOnXXX" failed with the following error: "The operation could not be performed because OLE DB provider "SQLNCLI10" for linked server "XXX" was unable to begin a distributed transaction.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

Executing the query "ROLLBACK TRAN" failed with the following error: "The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.

=======================================================================================

so I did some google and find some solution and apply all these but problem is still there , thenI put this SP execution to out side transaction block ( after the commit statement ) , thennoticed that it'll work with out any error.But we need to do this with-in T-Sql Transaction block. actually these are steps i follow to fix this issue but it wont effect ..

1) start Distributed transaction cordinator on both side ( source & destination )

2) Allow all these ( Network DTC , Allow Remote Client , Allow Inbound , Allow Out Bound , Enable XA & SNA LU transaction etc..)

3) since no positive feedback I restarted both sides ( source & destination )

4) Then stop,Uninstall,Install MSDTC using Command prompt as administrator ( net stop msdtc , msdtc -uninstall , msdtc -install )

5) Again Restarted both sides

6) Try with "Begin Distributed Transaction" & "Begin Transaction" when we begin transaction but both not working.

So any one faces this problem before??? waiting for your valueble advices....

Thanks & Regards,

Dimuthu


Thanks & Regards, Dimuthu


Viewing all articles
Browse latest Browse all 24688


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>