Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4088416
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:58:47+00:00 2026-05-20T18:58:47+00:00

Can someone please explain when and why use commit? http://msdn.microsoft.com/en-us/library/ms190295.aspx . 1) Update in

  • 0

Can someone please explain when and why use commit?
http://msdn.microsoft.com/en-us/library/ms190295.aspx

.

1) Update in tableX recordM

2) Update in tableY recordN

3) Update in tableZ recordO

4) use commit here

..

In the case where 2) fails and recordN is not updated, then roll back and do not proceed to 3) and 4) commit? is that where you would use it?

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:58:48+00:00Added an answer on May 20, 2026 at 6:58 pm

    use commit whenver one or several operation (transaction) are finished, and you wish to make change the data base.

    in your example, if 2) failed, you should do rollback and them the operation 1) will undo, so that will keep your database consistent

    eg. if you have a bookshop system, whenever you sell a book you have to do several operations:

      • discount the stock
      • create a sale history
      • charge the client’s card

    you will want either all operations done with success or nothing be done.
    so you should:

    1. begin transation
    2. do step 1,2,3
    3. commit

    if something wrong, rollback(undo) all

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can someone please explain what's the real use of a Tuple ?
Can someone please explain below in detail, 1- What is the use of ActivityManager
Can someone please explain why I should use (or should I?): <script type=text/javascript src=@Url.Content(/Scripts/SomeScript.js)></script>
Obviously I'm new to as3...Can someone please explain to me how I can use
Can someone please explain how JAR files and the Java class loader make use
Can someone please explain to me why does COMMIT in this function returns EXCEPTION
Can someone please explain the use of XA dataSource and how transaction management works
This may sound very basic... can someone please explain the use of the toString()
Can someone please explain how I use the jQuery Cookie plugin to persist the
Can someone please explain me how to use > and | in linux commands

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.