22,210
社区成员
发帖
与我相关
我的任务
分享
creatE table B..#Atb1(COL1 ...)
GO
insert into B..#Atb1 exec A..Bpoc1 参数
---一种解释
查看一下该存储过程中是否有链接服务器指向本地,SQLSERVER2005不支持在分布式事务处理中存在指向本地的链接服务器(环回链接服务器)
---又一种解释
其原因是由于计算机名和sql server 2005的servername不一致所致。
解决方法:
先执行
select @@servername
查看数据库中的servername
然后执行:
sp_dropserver ’old_name’
go
sp_addserver ’new_name’, local
其中old_name为select @@servername语句的结果,new_name为主机名
creat table #Atb1(COL1 ...)
GO
insert into #Atb1 exec Bpoc1 参数