distributed transaction insert exec error

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.

1
2

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

Comments (archived from WordPress)

Simon Cho · 2013-05-21

This issue isn’t related with Database. It’s due to HTML standard. You may need to check “www.w3schools.com” to figure out what it is.