How can we perform transactions in .NET?

Answer

Following are the general steps that are followed during a transaction:

  • Open connection
  • Begin Transaction: the begin transaction method provides with a connection object this can be used to commit or rollback.
  • Execute the SQL commands
  • Commit or roll back
  • Close the database connection

All ado.net Questions

Ask your interview questions on ado-net

Write Your comment or Questions if you want the answers on ado-net from ado-net Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---