sql 版本
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4) 现有一存贮过程 abegin
SET LOCK_TIMEOUT 1000insert into ......end 又有另一个存贮过程Bbegin tranexec aexec .... 执行其它存贮过程
....... 其它操作If (@@TranCount > 0)
if (@@ERROR <> 0)
rollback
else
commit
现为什么报错锁超时(Lock timeout...),但没有回滚其它操作的数据
Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft Corporation Enterprise Edition on Windows NT 5.0 (Build 2195: Service Pack 4) 现有一存贮过程 abegin
SET LOCK_TIMEOUT 1000insert into ......end 又有另一个存贮过程Bbegin tranexec aexec .... 执行其它存贮过程
....... 其它操作If (@@TranCount > 0)
if (@@ERROR <> 0)
rollback
else
commit
现为什么报错锁超时(Lock timeout...),但没有回滚其它操作的数据
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货