Unable to begin a distributed transaction
Hey All,
I am trying to get a list of error messages on a server using the sp_readlogerror stored procedure. I have a central server A and I am trying to get the information from Server B.
exec [server B].model.sys.sp_readerrorlog
the abovestatement works well and gets the data, But it throws up a transaction error when i try to insert into a temp table on server A. Here is the code running on server A:
create table #ErrorLog(LogDate datetime, ProcessorInfo varchar(1000),Text varchar(5000))
insert into #errorLog
exec [Server B].model.sys.sp_readerrorlog
this Throws up a transaction error as below
OLE DB provider "SQLNCLI" for linked server "BHSF-BTR-W318" returned message "The partner transaction manager has disabled its support for remote/network transactions.".
Msg 7391, Level 16, State 2, Line 3
The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "BHSF-BTR-W318" was unable to begin a distributed transaction.
I am trying to get a list of error messages on a server using the sp_readlogerror stored procedure. I have a central server A and I am trying to get the information from Server B.
exec [server B].model.sys.sp_readerrorlog
the above
insert into #errorLog
exec [Server B].model.sys.sp_readerrorlog
this Throws up a transaction error as below
OLE DB provider "SQLNCLI" for linked server "BHSF-BTR-W318" returned message "The partner transaction manager has disabled its support for remote/network transactions.".
Msg 7391, Level 16, State 2, Line 3
The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "BHSF-BTR-W318" was unable to begin a distributed transaction.
Solution:
Log on to the server > All Programs >Administrative tools> Component services
further steps are self explanatory in the image below..
If you don't have access to the Component Servers configuration, you can also resolve the original problem by changing a property of the Linked Server. If you set the Linked Server's "Enable Promotion of Distributed Transactions" to "false", then it won't use the DTC service.
ReplyDeleteThat resolved the problem for me, but there may be cons to this approach that I haven't discovered yet.