CodeSmith Community
Your Code. Your Way. Faster!

Are stored procedures rolled back?

Latest post 05-01-2008 1:11 PM by SuperJeffe. 1 replies.
  • 05-01-2008 5:36 AM

    • fweeee
    • Top 25 Contributor
    • Joined on 08-08-2007
    • Posts 176
    • Points 4,403

    Are stored procedures rolled back?

    While writing my application, I thought I'd be all clever and use stored procedures for some functions which might involve a lot of records. While some of these are reading only (returning total fields), others update data.

    It has just occured to me that the NetTiers TransactionManager might not be able to roll back any changes that were made in a stored procedure. Is this the case? Or is NetTiers smart enough to deal with that too?

     Thanks.

    • Post Points: 35
  • 05-01-2008 1:11 PM In reply to

    • SuperJeffe
    • Top 25 Contributor
    • Joined on 05-05-2006
    • Tulsa, Ok
    • Posts 332
    • Points 8,350

    Re: Are stored procedures rolled back?

    Reply |Contact |Answer

    This really isn't a nettiers thing.  It is just using the Transaction built into the .NET.  Transaction Manager just wraps this functionality.  You just have to make sure if your calling nettiers multiple times (calling the DB), you need to use the same transaction manager so all calls are wrapped into the same transaction.

    Short answer is yes, anything done in the DB is rolled back if the transaction is rolled back.

    jeff

    ----------------------------------------------------------------------
     Member of the .NetTiers team | Visit http://www.nettiers.com
    ----------------------------------------------------------------------

    • Post Points: 5
Page 1 of 1 (2 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems