How can we perform transactions in .NET?

 Posted by vishalneeraj-24503 on 7/31/2014 | Category: ADO.NET Interview questions | Views: 1527 | Points: 40
Answer:

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


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response