编程论坛
注册
登录
编程论坛
→
ASP技术论坛
请教:Connection对象. BeginTrans数据库事务处理怎么写,能给个实例并每行解释下
xuehao
发布于 2011-01-23 12:26, 554 次点击
初学者等待!!!我的QQ1192742894
1 回复
#2
kangli_kl
2011-01-27 10:55
on error resume next
conn.BeginTrans '启动事务
你的一系列操作
……
……
if err <> 0 then
conn.RollbackTrans '操作出错,事务回滚
response.write 操作出错。。。
else
'操作成功,事务提交
response.write 操作成功!
end if
1