transactions for SQL Server

Source: Internet
Author: User

This article mainly shares the process of transaction execution in SQL Server.

Note that this is only about the process, not the lock information, the information about the lock, there will be a special article to discuss later.

The execution flow of the transaction is as follows, from 01 steps to 08 steps.

1,sqlserver Accepting a transaction request

2, the storage engine starts a transaction (with a unique transaction identity) and writes the transaction log to the cache log buffer

3, the storage engine writes transaction data to cache DB buffer

4, when step 3 is complete, the storage engine commits the transaction identity when the cache log

5. Log the logs in log buffer to write the disk

6, after the log is written to disk completion, the storage engine returns a successful commit to the client transaction (note that at this point the data is not actually written to disk).

7, wait for trigger checkpoint or lazy write

8, data is written to disk

transactions for SQL Server

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.