Simon's SQL

SQL,DBA,tuning,Trouble Shooting,Performance

Posts Tagged ‘Distributed transaction’

distributed transaction insert exec error

Posted by Simon Cho on 04/05/2012

error message would be like this.

Msg 7391, Level 16, State 2, Procedure xxx, Line xxx
The operation could not be performed because OLE DB provider “SQLNCLI10” for linked server “LinkedServer B” was unable to begin a distributed transaction.

If you don’t care about distributed transaction for the remote exec and insert statement, you can simply change the option for the linked server.

sp_serveroption ServerName, 'remote proc transaction promotion', 'false'

Posted in Common | Tagged: | 1 Comment »