I am trying to run query to another database via linked servers.
Now, I am testing a script on the two databases on my machine.
(The linked server is localhost)
If I run query:
select * from openquery( data_source, 'select * from pubs') it goes.
But if I run query in transaction :
begin tran
(select * from openquery( data_source, 'select * from pubs')
commit tran
it raises error:
[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
Line 1: The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
thank you for help
joseph
Now, I am testing a script on the two databases on my machine.
(The linked server is localhost)
If I run query:
select * from openquery( data_source, 'select * from pubs') it goes.
But if I run query in transaction :
begin tran
(select * from openquery( data_source, 'select * from pubs')
commit tran
it raises error:
[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
Line 1: The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
thank you for help
joseph