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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:49:07+00:00 2026-06-14T02:49:07+00:00

In a SQL Server 2005 with default configuration, read_committed isolation level and read_committed snapshot

  • 0

In a SQL Server 2005 with default configuration, read_committed isolation level and read_committed snapshot off. Could a query abort because of a deadlock? If so, why?

What about if I increase the isolation level to Repeatable reads?

According to msdn documents a situation like this is possible with any level of isolation :

Transaction T_1 acquires a share lock on row 1.
Transaction T_2 acquires a share lock on row 2.
Transaction T_1 now requests an exclusive lock on row 2 ( because it wants to change it), and is blocked until transaction T_2 finishes and releases the share lock it has on row 2.
Transaction T_2 now requests an exclusive lock on row 1 ( because it wants to change it), and is blocked until transaction T_1 finishes and releases the share lock it has on row 1.
  • 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-14T02:49:09+00:00Added an answer on June 14, 2026 at 2:49 am

    SQL Server uses several types of locks – if it needs to write data (e.g. insert new data or update existing rows), it will need to use an exclusive lock – always, in any isolation level.

    With the fact that you have exclusive locks in play, there’s always a chance of a deadlock – process A holds an exclusive lock on resource A and needs exclusive access to resource B, while another process B has the exclusive lock on resource B and wants access to resource A.

    This can happen in any isolation level (even with READ UNCOMMITTED, SQL Server will take out exclusive locks for writing data!) and my point is: the more restrictive an isolation level is, the longer these locks tend to stick around, thus the higher the chance becomes that a deadlock can occur.

    If you haven’t already – you should be all means read, re-read, and re-re-read the following articles until you get a good understanding of the SQL Server locking mechanisms:

    • MSDN: Understanding Locking in SQL Server
    • Introduction to Locking in SQL Server
    • Understanding SQL Server Locking
    • Handling Deadlocks in SQL Server
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are using NHibernate 1.x and SQL Server 2005 with default configuration. What is
I have a script that connects to SQL Server 2005 default instance. But I'm
SQL Server 2005 x64 on Windows Server 2003 x64, with multiple instances (default +
i want to set the default value in a sql server 2005 datetime field
I have a table in SQL Server 2005. alt text http://www.techpint.com/sites/default/files/images/table.JPG I want to
Using SQL Server 2005 I have a query that gets child records from bundles
On SQL Server 2005, I have a complex multi-level allocation process which looks like
I have Sql Server 2005 and 2008 installed on my PC. By default 2008
With SQL Server 2005 and 2008 is it possible to set the default schema
I have a SQL Server 2005 database. It was created with default collation which

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.