November 2001
Intermediate to advanced
736 pages
16h 7m
English
A transaction is a group of operations that need to be successfully executed as a whole. If a single operation within a transaction fails, all the previous operations that were successfully executed will have to be rolled back, and the subsequent operations will never be executed.
ADO.NET provides three methods that, together, enable you to use the power of transactions within your ASP.NET application. The first method is BeginTransaction() of the Connection object. It is used to instantiate a Transaction object, as you can see in the following:
Dim trans As SqlTransaction = conn.BeginTransaction()
The other two methods belong to the Transaction object. Before using them, you will need to use a Command ...
Read now
Unlock full access