Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 879583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:57:21+00:00 2026-05-15T11:57:21+00:00

I can see how to turn off row level and page level locking in

  • 0

I can see how to turn off row level and page level locking in SQL Server, but I cannot find a way to force SQL Server to use row level locking. Is there a way to force SQL Server to use row level locking and NOT use page level locking?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:57:22+00:00Added an answer on May 15, 2026 at 11:57 am

    You can use the ROWLOCK hint, but AFAIK SQL may decide to escalate it if it runs low on resources

    From the doco:

    ROWLOCK Specifies that row locks are
    taken when page or table locks are
    ordinarily taken. When specified in
    transactions operating at the SNAPSHOT
    isolation level, row locks are not
    taken unless ROWLOCK is combined with
    other table hints that require locks,
    such as UPDLOCK and HOLDLOCK.

    and

    Lock hints ROWLOCK, UPDLOCK, AND XLOCK
    that acquire row-level locks may place
    locks on index keys rather than the
    actual data rows. For example, if a
    table has a nonclustered index, and a
    SELECT statement using a lock hint is
    handled by a covering index, a lock is
    acquired on the index key in the
    covering index rather than on the data
    row in the base table.

    And finally this gives a pretty in-depth explanation about lock escalation in SQL Server 2005 which was changed in SQL Server 2008.

    There is also, the very in depth: Locking in The Database Engine (in books online)

    So, in general

    UPDATE
    Employees WITH (ROWLOCK)
    SET Name='Mr Bean'
    WHERE Age>93
    

    Should be ok, but depending on the indexes and load on the server it may end up escalating to a page lock.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If i turn off the internet connection on mobile, then i can see something
I can see that GD library is for images. But I can't see differences
I can see some potential difficulties with this concept but the idea is: I
Is there a way to turn off all visual updates to a .NET form
Can anyone help me turn off FancyBox on certain images? I've tried a million
I tried to turn off importing documents in WSDL4J (1.6.2) in the way suggested
How do I turn off the tips temporarily? I see the ability referenced on
I can see people asking all the time whether multiple inheritance should be included
We can see in a directory files ordered by Name in Windows Explorer. If
I can see line numbers in my error logs in our development environment, in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.