Web表单和ADO.NeT事务 [英] Web Form and ADO.NeT Transaction

查看:61
本文介绍了Web表单和ADO.NeT事务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




使用ADO.NET 2.0,VS.NET 2005,SQL2005

我需要在一个事务下执行多个存储过程。我可以

只使用一个命令/事务或者必须使用多个(然后提交或

回滚所有)

它如何与ADO一起使用.NET


Ado.Tran

SP1被叫

循环

SP2被称为

SP3叫

循环

SP4叫

循环

Sp5叫

等...等等......


如果有任何错误

回滚交易(或所有交易)

else

committe交易(或所有交易)


感谢您提供任何帮助或其他想法,还需要代码链接等。

点亮

Hi,

using ADO.NET 2.0, VS.NET 2005, SQL2005
I need to execute several Stored Procedures under one transaction. Can I
use just one command/transaction or have to use multiple ( then commit or
rollback all )
How does it work with ADO.NET

Ado.Tran
SP1 Called
loop
SP2 Called
SP3 Called
loop
SP4 Called
loop
Sp5 Called
Etc... etc...

if any error
rollback transaction ( or all transactions )
else
committe Transaction ( or all Transactions )

Thanks for any help or other Ideas, needs also code links etc..
Lit

推荐答案

看看这里

http://msdn.microsoft.com/msdnmag/is...DataPoints/#S6


点亮 < sq ********** @ hotmail.comwrote in message

news:O0 ************** @ TK2MSFTNGP04.phx.gbl ...
Have a look here

http://msdn.microsoft.com/msdnmag/is...DataPoints/#S6

"Lit" <sq**********@hotmail.comwrote in message
news:O0**************@TK2MSFTNGP04.phx.gbl...




使用ADO.NET 2.0,VS.NET 2005,SQL2005

我需要在一次交易中执行几个存储过程。我可以

只使用一个命令/事务或者必须使用多个(然后提交或

回滚所有)

它如何与ADO一起使用.NET


Ado.Tran

SP1被叫

循环

SP2被称为

SP3叫

循环

SP4叫

循环

Sp5叫

等...等等......


如果有任何错误

回滚交易(或所有交易)

else

committe交易(或所有交易)


感谢您提供任何帮助或其他想法,还需要代码链接等。


点亮

Hi,

using ADO.NET 2.0, VS.NET 2005, SQL2005
I need to execute several Stored Procedures under one transaction. Can I
use just one command/transaction or have to use multiple ( then commit or
rollback all )
How does it work with ADO.NET

Ado.Tran
SP1 Called
loop
SP2 Called
SP3 Called
loop
SP4 Called
loop
Sp5 Called
Etc... etc...

if any error
rollback transaction ( or all transactions )
else
committe Transaction ( or all Transactions )

Thanks for any help or other Ideas, needs also code links etc..
Lit



看看这里

http://msdn.microsoft.com/msdnmag/is...DataPoints/ #S6


" Lit" < sq ********** @ hotmail.comwrote in message

news:O0 ************** @ TK2MSFTNGP04.phx.gbl ...
Have a look here

http://msdn.microsoft.com/msdnmag/is...DataPoints/#S6

"Lit" <sq**********@hotmail.comwrote in message
news:O0**************@TK2MSFTNGP04.phx.gbl...




使用ADO.NET 2.0,VS.NET 2005,SQL2005

我需要在一次交易中执行几个存储过程。我可以

只使用一个命令/事务或者必须使用多个(然后提交或

回滚所有)

它如何与ADO一起使用.NET


Ado.Tran

SP1被叫

循环

SP2被称为

SP3叫

循环

SP4叫

循环

Sp5叫

等...等等......


如果有任何错误

回滚交易(或所有交易)

else

committe交易(或所有交易)


感谢您提供任何帮助或其他想法,还需要代码链接等。


点亮

Hi,

using ADO.NET 2.0, VS.NET 2005, SQL2005
I need to execute several Stored Procedures under one transaction. Can I
use just one command/transaction or have to use multiple ( then commit or
rollback all )
How does it work with ADO.NET

Ado.Tran
SP1 Called
loop
SP2 Called
SP3 Called
loop
SP4 Called
loop
Sp5 Called
Etc... etc...

if any error
rollback transaction ( or all transactions )
else
committe Transaction ( or all Transactions )

Thanks for any help or other Ideas, needs also code links etc..
Lit



看看这里

http://msdn.microsoft.com/msdnmag/is...DataPoints/ #S6


" Lit" < sq ********** @ hotmail.comwrote in message

news:O0 ************** @ TK2MSFTNGP04.phx.gbl ...
Have a look here

http://msdn.microsoft.com/msdnmag/is...DataPoints/#S6

"Lit" <sq**********@hotmail.comwrote in message
news:O0**************@TK2MSFTNGP04.phx.gbl...




使用ADO.NET 2.0,VS.NET 2005,SQL2005

我需要在一次交易中执行几个存储过程。我可以

只使用一个命令/事务或者必须使用多个(然后提交或

回滚所有)

它如何与ADO一起使用.NET


Ado.Tran

SP1被叫

循环

SP2被称为

SP3叫

循环

SP4叫

循环

Sp5叫

等...等等......


如果有任何错误

回滚交易(或所有交易)

else

committe交易(或所有交易)


感谢您提供任何帮助或其他想法,还需要代码链接等。


点亮

Hi,

using ADO.NET 2.0, VS.NET 2005, SQL2005
I need to execute several Stored Procedures under one transaction. Can I
use just one command/transaction or have to use multiple ( then commit or
rollback all )
How does it work with ADO.NET

Ado.Tran
SP1 Called
loop
SP2 Called
SP3 Called
loop
SP4 Called
loop
Sp5 Called
Etc... etc...

if any error
rollback transaction ( or all transactions )
else
committe Transaction ( or all Transactions )

Thanks for any help or other Ideas, needs also code links etc..
Lit



这篇关于Web表单和ADO.NeT事务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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