“错误 8525:要么在新事务中登记此会话,要么在空事务中登记”在具有许多记录传输的分布式事务中
我有一个从 SQL2008 到 SQL2kSp3 的链接服务器。
我想根据SQL2kSp3中插入、更新、删除的记录在SQL2008中插入、更新、删除记录。
我所有的语句都在分布式事务和提交之间。
当我想在小数据中进行这些操作时,我没有任何问题。我测试了3条记录,运行大约20秒就可以了。但是,当我在大约 1000 条记录的许多记录中测试它时,大约需要 20 分钟,并且收到此错误消息:
Distributed transaction completed. Eithe enlist this session in a new transaction or the null transaction[SQLSTATE 42000][Error 8525] The step failed
我在 SQL2k 上执行了 Instcat.sql
并重新启动了我的 sqlserver,但我遇到了同样的问题。
更好的说法是,首先我有没有 Service pack 的 sql2k,然后安装了 Sql2kSp3 来升级它,但是当我执行
select @@version
时,我在 sql 版本中没有看到 Spk3。
操作系统:
Windowsxp SP2上安装的Sql2008
Windows 2003 service pack2上安装的Sql2k
带宽约为:256Kbps
请帮助我。
I have a linked server from SQL2008 to SQL2kSp3.
I want to Insert,Update,Delete records in SQL2008 according to inserted,updated,deleted records in SQL2kSp3.
All of my statements are between Distributed transaction and commit.
I don't have any problem when I want to do these operation in small data. I tested it on 3 records and operation will do in about 20 seconds. But when I'm testing it in many recods about 1000 records it takes about 20 minutes and I recieve this error message:
Distributed transaction completed. Eithe enlist this session in a new transaction or the null transaction[SQLSTATE 42000][Error 8525] The step failed
I executed Instcat.sql
on SQL2k and restarted my sqlserver but I have the same problem.
It's better to say the first I had sql2k without Service pack and then I installed Sql2kSp3 to upgrade it but when I execute
select @@version
I don't see Spk3 in the version of sql.
operating systems:
Sql2008 installed on Windowsxp SP2
Sql2k installed on windows 2003 service pack2
Bandwidth is about:256Kbps
Please hepl me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论