SQL Server lock mechanism (iv) Overview (impact of various transaction isolation levels)

Source: Internet
Author: User
SQL Server lock mechanism (I) Overview (lock type and scope) SQL Server lock mechanism (ii) Overview (Lock compatibility and lockable resources) this article introduces the SQL Server lock mechanism (iii) Overview (lock and transaction isolation level) vi. The impact of various transaction isolation levels on data modification affects users who read or modify the same data at the same time.

SQL server lock mechanism (I) Overview (lock type and scope) SQL SERVER lock mechanism (ii) Overview (Lock compatibility and lockable resources) this article introduces the SQL SERVER lock mechanism (iii) Overview (lock and transaction isolation level) 6. users with different transaction isolation levels that affect data modification may affect reading or modifying the same data at the same time.

SQL server lock mechanism (I)-Overview (lock types and ranges)

SQL SERVER lock mechanism (II)-Overview (Lock compatibility and lockable resources)

This article introduces the locking mechanism of SQL SERVER (iii) -- Overview (lock and transaction isolation level)

Vi. Impact of various transaction isolation levels

Users who modify data will affect other users who read or modify the same data at the same time. That is, these users can access data concurrently. If the data storage system has no concurrency control and the Hong Kong virtual host is used, the user may see the following negative effects:

· Uncommitted dependency (dirty read)

· Inconsistent analysis (not repeated)

· Phantom read

(1) Dirty read:

For example, Zhang is executing a service on an American server:

TbUnRead, delay --- at this time, Li queries the data in the table. The Hong Kong server is rented and the following statement is executed: tbUnRead

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.