CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2006
    Posts
    118

    Post RollBack in C#.Net

    Hi
    I am working on the application where i have to execute multiple transaction like update, select and insert one by one. If one of them fail, i want to rollback whole the transaction. and this transaction depends on one another.
    So dont know how to use rollback.

    In my application, First I am Updating table1, and then fetch some value from that and use that to insert into another table. But the transaction will not be saved untill commit appear. and so cant execute the next statement.

  2. #2
    Join Date
    Apr 2005
    Posts
    576

    Re: RollBack in C#.Net

    You can use either ADO .Net transaction or System.Transactions. Look at MSDN for examples.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured