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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:11:54+00:00 2026-05-13T10:11:54+00:00

Lets say I open a transaction and run update queries. BEGIN TRANSACTION UPDATE x

  • 0

Lets say I open a transaction and run update queries.

BEGIN TRANSACTION
UPDATE x SET y = z WHERE w = v

The query returns successfully and the transaction stays open deliberately for a period of time before I decide to commit.

While I’m sitting on the transaction is it ever possible the MSSQL deadlock machinary would be able to preempt my open transaction that is not actually executing anything to either clear a deadlock or free resources as system memory/resource limits are reached?

I know about SET DEADLOCK_PRIORITY and have read the MSDN articles on the topic of deadlocks. Logically since I’m not actively seeking to stake claim on any additional resources I can’t imagine a scenario that would trigger a sane deadlock avoidance algorithm.

Does anyone know for sure if its possible that simply holding any locks can make me a valid target? Similarly could any low resource condition trigger the killing of my SPID?

  • 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-13T10:11:54+00:00Added an answer on May 13, 2026 at 10:11 am

    NO

    For a deadlock to occur all the participants in the deadlock chain must be waiting for a resource (a lock). If your connection is idle it means it doesn’t execute a request, which implies it cannot be waiting.

    As for other conditions that can kill your session I can think of at least three:

    • administrative operations that use WITH ROLLBACK_IMMEDIATE
    • a mirroring failover
    • intentional KILL <yourspid>, perhaps as a joke by your friendly DBA
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I open some application or process. Did some work with that. Now
Lets say UserA and UserB both have an application open and are working with
Lets say I have an Excel file named DataSheet.xls open. How can I kill
How would I be able to open a file (lets say an .html file)
Lets say you have a site where users may open chat rooms. Once a
when a text message is sent form, lets say an application 'myApp' it'll open
Lets say I query the database and load a list of items. Then I
Lets say I wanted to make a post request to update the status of
Through settings I set to show one static page (lets say I called it
Lets say I have a string = hello. how do i open a text

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.