What are the different types of Locks?

What are the different types of Locks?

Types of locks:
Shared Lock: Shared locks are used for operations that read data, such as a SELECT statement. During Shared locks used, concurrent transactions can read a resource, but cannot modify the data.

Update Lock: Update locks are used when SQL Server intends to modify a row or page, and later promotes the update page lock to an exclusive lock before actually making the changes. The Update locks are used to prevent a deadlock.

Exclusive Lock: Exclusive locks are used for data modification operations, such as UPDATE, INSERT, or DELETE. Other transactions cannot read or modify data locked with an Exclusive lock.
What is Extent and types of Extent?
An extent is 8 continuous pages to hold server object. Uniform extents - This type of extent contains data from one table.......
What is the use of DBCC commands?
DBCC is database consistency checker. DBCC commands are used to check the consistency of the databases........
Define COLLATION
Collation is the order that SQL Server uses for sorting or comparing textual data........
Post your comment