• p0peye (9/23/2010)


    Please correct me if i am wrong...

    My understanding is, you wont be able to commit or rollback inner transaction separately as the outer transaction will override with its commit/rollback command. If this is true, why do we need to use nested transactions or in which scenario nested transactions can be used?

    let me know if my question is not clear

    _________

    Andrew

    Hello, Andrew.

    While this question has been discussed at length in the discussions of the previous questions in this same series (published starting from September 10, 2010); I would say that your understanding is partially right.

    You do not trully "commit" the inner transaction as long as you don't commit the outer transaction. However, you can use save points within your transactions and rollback to the chosen point. This is demonstrated in the discussions on the first part of the series.

    I would definitely recommend reading those discussions and going through all the parts of the series, and I am sure that all your questions will be answered.

    If any remain, please feel free to post them and we will try to help you out as best as we can.

    Thanks & Regards,
    Nakul Vachhrajani.
    http://nakulvachhrajani.com

    Follow me on
    Twitter: @sqltwins