Click here to Skip to main content
15,887,966 members
Please Sign up or sign in to vote.
1.09/5 (4 votes)
See more:
what is rollback and commit in c#....thanks
help me
Posted
Comments
Shahin Khorshidnia 22-Dec-12 2:11am    
Why don't you search the google before asking it?

Rollbackh and Commit are part of Database Transaction, See here[^]...
If you want to transact it using C#, example is given here :http://forums.asp.net/t/1166177.aspx/1[^]
 
Share this answer
 
The transaction can only be rolled back from a pending state (after BeginTransaction has been called, but before Commit is called). The transaction is rolled back if it is disposed before Commit or Rollback is called.
 
Share this answer
 
Comments
Richard MacCutchan 23-Jun-15 8:39am    
Please do not post replies to questions that are more than two years old. It serves no purpose other than to clutter the forum.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900