201310-23 发现问题:
不启用MSDT情况,用远程表更新本地数据表失败,而使用insert 语句则没有问题
delete d_item from d_item a,[lmls].lmls_wxc.dbo.d_item b where a.item_code='10A104066531' and a.item_code=b.item_code ;
update a set item=b.item
from [lmls].lmls_wxc.dbo.d_item b
inner join d_item a on a.item_code=b.item_code
where b.item_code='10A10406651';这两语句,执行都会提示“ 服务器 'HYJK-DEV\GSQL' 上的 MSDTC 不可用。”
而同类语句:
delete d_vip_archives from d_vip_archives a,[lmls].lmls_wxc.dbo.d_vip_archives b where a.k_no=b.k_no and a.k_no='10001';
则没有问题。
问题解决:
发现上面出现错误的语句,更新的表存在 delete和update触发器。如果删除本地表的相关触发器,则运行正常。