How can we perform transactions in .NET?

 Posted by vishalneeraj-24503 on 8/1/2014 | Category: ADO.NET Interview questions | Views: 418 | Points: 40
Answer:

1. Open a database connection using open method of the connection object.
2. Begin a transaction using the Begin Transaction method of the connection object.
3. Execute the SQL commands using the command object.
4. Commit or roll back the transaction using the commit or rollback method of the transaction object.
5. Close the database connection.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response