transaction with unknown nbr of commands
- From: Alex S Moore <Alex S Moore@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 29 Aug 2005 09:15:17 -0700
Using vb.net for code behind on a asp.net application.
I need to run a number of sqlcommands, based on user input. The commands
need to run as a single transaction. The commands are all stored procedures.
How do I do this? I was thinking that I could build an array of the
sqlcommands, but I do not see how to do it. I looked at arraylist, but still
not sure.
Maybe the question could be stated as:
When I run a sqlcommand in a transaction, does the sqlcommand need to
persist, or can I just reuse it to run another stored procedure within the
same transaction?
.
- Follow-Ups:
- Re: transaction with unknown nbr of commands
- From: Mary Chipman [MSFT]
- Re: transaction with unknown nbr of commands
- From: Cor Ligthert [MVP]
- Re: transaction with unknown nbr of commands
- Prev by Date: Re: Object reference not set to an instance of an object - Exception in System.Data.OracleClient
- Next by Date: Re: Are DataViews thread safe?
- Previous by thread: SQL debugging
- Next by thread: Re: transaction with unknown nbr of commands
- Index(es):
Relevant Pages
|