SQL Server data blocking cause

Source: Internet
Author: User

Causes of blockage formation

Because SQL Server is high concurrency, there will be a lot of user access at the same time, in order to ensure data consistency and data security, the introduction of a lock mechanism. At the same time only the user who gets the key is able to access, while the other user needs to wait.

Four necessary conditions for deadlock formation

1. A resource can only be used by one process at a time.

2. When a process is blocked by a request for resources, the resources that are already available remain

3. The resources available to the process cannot be forcibly deprived until it is used

4. A round-the-end cycle waiting relationship is formed between several processes

How to capture deadlocks

1.Profiler

2. Extended Event Trace Deadlock

SQL Server data blocking cause

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.