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

  • SEARCH
  • Home
  • 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 430967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:55:40+00:00 2026-05-12T19:55:40+00:00

I get that the (nolock) optimizer hint allows for dirty reads, but under what

  • 0

I get that the (nolock) optimizer hint allows for “dirty reads”, but under what very specific scenarios is this a bad idea? I’ve never seen such widespread use of (nolock) in an organization, and it makes me nervous. I’d like an explanation in terms of user stories. “Paul does A, Peter does B, X happens instead of Y”.

  • 1 1 Answer
  • 3 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-12T19:55:40+00:00Added an answer on May 12, 2026 at 7:55 pm

    Reposting this answer:


    NOLOCK means placing no locks at all.

    Your query may returns portions of data as of before UPDATE and portions as of after UPDATE in a single query.

    Like, a debit without a credit and these kinds of stuff.

    For instance, I just ran this query on a large table:

    SELECT  SUM(LEN(name))
    FROM    master WITH (NOLOCK)
    OPTION (MAXDOP 1)
    
    ---
    18874367
    

    All name‘s have length of 1.

    Then I reran it and in the middle of the query updated the table:

    UPDATE  master
    SET     name = 'tt'
    WHERE   id <= 10000
    
    SELECT  SUM(LEN(name))
    FROM    master WITH (NOLOCK)
    OPTION (MAXDOP 1)
    
    ---
    18874944
    

    As we can see, this query noticed 577 rows as updated (length 2), all other rows as not updated (length 1).

    SELECT  SUM(LEN(name))
    FROM    master WITH (NOLOCK)
    OPTION (MAXDOP 1)
    
    ---
    18884367
    

    And this query, run right after the previous one finished, sees all updates.

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

Sidebar

Related Questions

I get that asterix is for pointers, and I understand about pointers now. But
How can I get ContextMenu that a ToolStripDropDownItem belongs to? This is for the
I have a table that I need to get some specific data from for
I want to get an element that contains specific text. When I use the
I can't get this straight: I have one button that I want one action
I get that error with the following code. anyone know why? function validateAdminInput(){ var
I do get that we easily can set the Close button text to a
I am deleting segments after they gets indexed then how nutch will get that
So Here is the Problem, I am trying to get that circle to align
How may one get information that was used to programatically generate asp controls? For

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.