不能在手动或分布事务模式下创建新的连接

rjzou2006 2009-09-15 11:11:31
USE [SZUM_ZHZF_ExChange]
GO
/****** 对象: StoredProcedure [dbo].[p_copy_trspdb_t_xzzf_pz] 脚本日期: 09/15/2009 10:51:03 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO

ALTER PROCEDURE [dbo].[p_copy_trspdb_t_xzzf_pz]
--WITH ENCRYPTION
AS
BEGIN
SET NOCOUNT ON

BEGIN TRANSACTION;

declare @t_trsp_id table (zjid uniqueidentifier)
/*搜索未同步的ID*/
insert into @t_trsp_id
select id from SZUM_ZHZF_ExChange.dbo.t_case_stage_suggestion
where
cast(id as varchar(100))
not in
(
select zjid from v_ora_T_XZZF_TRSP_ID
where HJ='t_xzzf_pz'
)
and (acitivity_id='8a540876-88c2-47a6-9567-9ac0010550c4'
or acitivity_id='e5536807-fd17-4941-9969-9ac0010562df' ) --副队长审核/大队长审核
/*删除未同步过的数据,重新同步*/
delete from SZUM_ZHZF_ExChange.dbo.t_case_stage_suggestion
where
id in
(select zjid from @t_trsp_id)
and (acitivity_id='8a540876-88c2-47a6-9567-9ac0010550c4'
or acitivity_id='e5536807-fd17-4941-9969-9ac0010562df' ) --副队长审核/大队长审核

/*重新同步*/
insert into SZUM_ZHZF_ExChange.dbo.t_case_stage_suggestion
select * from SZUM_ZHZF_IntergratedPlatform.dbo.t_case_stage_suggestion
where
id in
(select zjid from @t_trsp_id)
and (acitivity_id='8a540876-88c2-47a6-9567-9ac0010550c4'
or acitivity_id='e5536807-fd17-4941-9969-9ac0010562df' ) --副队长审核/大队长审核


COMMIT TRANSACTION;

END



链接服务器"ZHZF_EXCHANGE_SQL2000"的 OLE DB 访问接口 "SQLNCLI" 返回了消息 "不能在手动或分布事务模式下创建新的连接。"。
消息 7320,级别 16,状态 2,第 1 行
无法对链接服务器 "ZHZF_EXCHANGE_SQL2000" 的 OLE DB 访问接口 "SQLNCLI" 执行查询"SELECT 1 FROM "XZZF"."dbo"."t_xzzf_trsp_id" "Tbl1005" WHERE "Tbl1005"."ZJID" IS NULL AND "Tbl1005"."HJ"='t_xzzf_pz'"。



请问这个是什么原因呢?

...全文
138 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
rjzou2006 2009-10-15
  • 打赏
  • 举报
回复
不是sp3的问题。
billpu 2009-09-15
  • 打赏
  • 举报
回复
帮顶
soft_wsx 2009-09-15
  • 打赏
  • 举报
回复
http://topic.csdn.net/u/20081217/11/c3710ea3-cae7-461d-ba70-2724c3e25cee.html
soft_wsx 2009-09-15
  • 打赏
  • 举报
回复
等高手!
devilidea 2009-09-15
  • 打赏
  • 举报
回复
学习
rjzou2006 2009-09-15
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 soft_wsx 的回复:]
SQL codehttp://topic.csdn.net/u/20081217/11/c3710ea3-cae7-461d-ba70-2724c3e25cee.html
[/Quote]

正在安装sp3补丁,不知道行行不行?

34,590

社区成员

发帖
与我相关
我的任务
社区描述
MS-SQL Server相关内容讨论专区
社区管理员
  • 基础类社区
  • 二月十六
  • 卖水果的net
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧