日期:2014-05-18  浏览次数:20515 次

SQL server 库链接的高手来办忙看看
环境:数据库都是sql   2000   系统为win   2003   ,服务器间的库链接建立都成功了,查询和修改都可以没有问题,做了一个触发器如下:
create   TRIGGER   u_t_customer
on   customer
for   update
as  
begin
insert   into   fzlj.app1.dbo.customer1
select   fchrcustomer,fchrcustomername,fchrcustomershort,
001,
plotyearreturnrate,1   from   inserted
where   fchrcustomer   not   in   (select   customerno   from   fzlj.app1.dbo.customer1)
end
在触发时就提示:
服务器:   消息   7391,级别   16,状态   1,过程   u_t_customer,行   6
该操作未能执行,因为   OLE   DB   提供程序   'SQLOLEDB '   无法启动分布式事务。
[OLE/DB   provider   returned   message:   新事务不能登记到指定的事务处理器中。   ]
OLE   DB   错误跟踪[OLE/DB   Provider   'SQLOLEDB '   ITransactionJoin::JoinTransaction   returned   0x8004d00a]。

两台机子的SQL   都打了SP3.请高手帮看看.

------解决方案--------------------
SP4补丁
启动 Distributed Transaction Coordinator 服务
控制面板-管理工具-组件服务-计算机-右键我的电脑-属性-MSDTC-安全配置-全打勾不要求进行验证