alter proc test
as
begin tran Insert into [123.152.11.3].db.dbo.tb(operatedate) values(getdate())
select max(id)  from [123.152.11.3].db.dbo.tb
if(@@error <> 0)
begin
rollback 
end
else
begin
commit
end
我在执行上面这个存储过程时,提示以下错误:
message:7391 level:16oleDB属性"SQLOLEDB"分散事务不能开始,要求进行的操作不能进行。OLE/DB provider returned message: 被指定的事务并行,新建的事务不能执行。我不加事务没有问题,加上了 就出上面的问题