Simon's SQL

SQL,DBA,tuning,Trouble Shooting,Performance

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'

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s