What is the lock types supported in SQL Server ?

 
 

There could be thousands of concurrent users trying to read or modify the database, sometimes exactly the same data. If not for locking, your database would quickly lose its integrity.
The following basic types of locks are available with SQL Server:
- Shared locks: Enable users to read data but not to make modifications.
- Update locks: Prevent deadlocking (discussed later in this session).
- Exclusive locks: Allow no sharing; the resource under an exclusive lock is unavailable to any other transaction or process.
- Schema locks: Used when table-data definition is about to change—for example, when a column is added to or removed from the table.
- Bulk update locks: A special type of lock used during bulk-copy operations.