ADO.NET transaction Processing

ADO.NET transaction Processing.

Steps to use transaction object:

- Open a database connection.
- Create the transaction object using BeginTransaction method of connection object.
- Create command object by using transaction object as the parameter.
- Execute the commands and check for the error.
- If no error, commit the changes to the database or restore the database state.
- Close the connection.

The transaction object handles concurrency issue using IsolationLevel settings. The settings can be

- ReadUncommitted
- Chaos
- ReadCommitted
- RepeatableRead
- Serializable
Explain the namespaces in which .NET has the data functionality class.
System.data contains basic objects. These objects are used for accessing and storing relational data....
Use of data adapter
The data adapter objects connect a command objects to a Dataset object....
What are basic methods of Dataadapter?
The most commonly used methods of the DataAdapter are.....
Post your comment