8 Types of SQL Server locks

Source: Internet
Author: User

The 1th kind,

Shared locks, generated by read lookups.

The 2nd kind,

Intent locks, with intent locks, indicate the intention to acquire a resource.

The 3rd kind,

Update the lock and get it before modifying the data.

The 4th kind,

Exclusive lock, which is used to monopolize a resource.

The 5th Kind,

Schema locks, which are generated when a DDL statement is run.

The 6th kind,

The schema is stable, generated at query compile time, so that the DDL cannot be performed on the table.

The 7th kind,

High-volume update locks, which generate such locks during bulk copy, such as locking the IDs by 1~100000 these lines at the same time, many rows with a lock.

The 8th kind,

A key range lock, which protects a series of rows according to the key range.

8 Types of SQL Server locks

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.