Click here to Skip to main content
11,927,422 members (44,378 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# C#4.0
what is rollback and commit in c#....thanks
help me
Posted 21-Dec-12 20:32pm
Shahin Khorshidnia 22-Dec-12 2:11am
Why don't you search the google before asking it?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Rollbackh and Commit are part of Database Transaction, See here[^]...
If you want to transact it using C#, example is given here :[^]
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.151126.1 | Last Updated 23 Jun 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100