Home » Topic » Page level locking in SQL Server

Page level locking in SQL Server

Stephen West ~ Modified: March 5th, 2016 ~ ~ 1 Minute Reading

Home Forums Page level locking in SQL Server

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1460 Score: 0
    Stephen West
    Moderator
    4 pts

    Hi,
    How to enable page level locking in SQL Server database? What the first thing we should care when we are performing page level locking in SQL Server databases?

    #1477 Score: 0
    Lincoln Burrows
    Moderator
    16 pts

    You can enable page level locking with the help of SSMS and TSQL.
    1. Go to the Index Properties and select the check box Use page locks when accessing the index as highlighted and then save the changes before rebuilding the index. OR
    2. Enable page level locking on index using TSQL command

    ALTER INDEX <index name> ON <table name> SET (ALLOW_PAGE_LOCKS = ON)
    GO
    
    #1486 Score: 0
    Stephen West
    Moderator
    4 pts

    Thanks for a warm reply.
    Please tell me the things, that we should care when we are performing a page level locking in SQL Server.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.