sp_refreshview error on linked server
Posted on 2006-07-07
I have 2 SQL servers: myDEV and myTRN
I have a VIEW on myDEV pointing to myTRN, like this ...
CREATE VIEW dbo.myRpt AS SELECT * FROM myTRN.JJR.dbo.myRpt
The view is created and it Works fine.
However, later, I try ...
exec sp_refreshview myRpt
I get Error ....
Server: Msg 7391, Level 16, State 1, Procedure myRpt, Line 1
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].