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 8208419
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:21:40+00:00 2026-06-07T09:21:40+00:00

One of my client session creates an entry in the table from a transaction

  • 0

One of my client session creates an entry in the table from a transaction and continues its processing. The transaction runs under the isolation mode read committed. Meanwhile, the other client session reports all data in the table.

The selecting all action is entirely locked now because of the locked row (inserted by other client).

How can I just retrieve the committed data during the select all, instead of getting completely locked?

Any help would be greatly appreciated.

  • 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-06-07T09:21:42+00:00Added an answer on June 7, 2026 at 9:21 am

    You haven’t really been very specific about your usage scenario, but it is possible to get the data out of the table, there are just some severe caveats.

    You can use the READ UNCOMMITTED snapshot isolation level, as marc_s said, and that has the same effect as using WITH (NOLOCK) on all of your select statements within the transaction. If you want to read just that table but treat all other reads in your transaction normally then you are better putting the NOLOCK hint on the specific table within the query. So, for example:

    SELECT *
      FROM firstTable f INNER JOIN
           secondTable s WITH (NOLOCK) on f.Key = s.Key
    

    That would issue a normal read lock for firstTable but read secondTable with no locks. No locks can be quite dangerous – as you can get effectively corrupt data out. If the insert being performed reorders data and causes a page split, you can get out the same row twice and all sorts of similar unpleasantness.

    So it is possible, but it’s not ideal, and you should be wary of the effect. Some good further reading is here, courtesy of Jason Strate.

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

Sidebar

Related Questions

// load the client and any many to one relationships var clientRootQuery = session.QueryOver(()
Let's say I want to send a message from one client to another. How
There is one client who cannot see the img title tags in IE8. Is
Currently I have database with the following associations: One Client to Many Intakes One
I'm developing a server in C# which can accept only one client and I
Currently I have a database with the following relationships: One Client has multiple Entities
I have made some changes in one perforce client, but haven't submitted them. I
Say I have a simple client/server scenario with one method: // client code $client
The following code worked just fine thank you with one COM client, but with
Looking back at my past projects I often encounter this one: A client or

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.