Begin Distributed Transaction update MyServer.jslpos.dbo.t_basic_brand
set brandname = brandname + 'PL'
where brandcode = '01'commit Transaction
MyServer 是连接服务器,(不用分布式事物就成功)出现这样的错误
消息 3910,级别 16,状态 2,第 1 行
其他会话正在使用事务的上下文。
下面不用连接服务器也通过Begin Distributed Transaction update t_basic_brand
set brandname = brandname + 'P'
where brandcode = '01'commit transaction