在asp.net中交易 [英] Transaction in asp.net

查看:84
本文介绍了在asp.net中交易的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我想知道
开始转换
在ASP.NET中是否可以提交或回滚事务?


请给我一些消息来源..


我立即在数据库中首先完成了批量插入
称为存储过程,该存储过程将更新另一个表.


因此,如果未执行sp或将出现错误,表明应该将时间bulkinsert回滚...

这有可能吗?



谢谢
@ ChetanV @

Hello Guys!

I want to know that
Begin transction
commit or rollback transaction is posiible in asp.net?


plz provide me some source for that..?


i have done first bulkinsert in database after immediatly
called stored procedure which update the other table.


therefore if sp is not executed or it will shoe the error that time bulkinsert should be rollback...

this is possible?



thank
@ChetanV@

推荐答案

尝试本文
http://www.aspnet101.com/2010/07/working-with-ado -net-transactions/ [ ^ ]

http://www.4guysfromrolla.com/articles/072705-1.aspx [ ^ ]



投票或接受此解决方案
如果这对您有帮助
谢谢
try this articles
http://www.aspnet101.com/2010/07/working-with-ado-net-transactions/[^]

http://www.4guysfromrolla.com/articles/072705-1.aspx[^]



vote or Accept this solution
if this will help you
thanks


这篇关于在asp.net中交易的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆