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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:46:05+00:00 2026-05-18T04:46:05+00:00

When running sp_who2, it appears one of my SQL commands is blocking but waiting

  • 0

When running sp_who2, it appears one of my SQL commands is blocking but waiting on a process that is “Sleeping” and “Awaiting Command”. This doesn’t make any sense.

alt text

Any ideas what might be causing this? I know the DELETE is running inside a transaction that previously inserted a lot of rows into the table, could that be the problem?

  • 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-18T04:46:06+00:00Added an answer on May 18, 2026 at 4:46 am

    You probably have an open transaction on SPID 98. A blocking SPID does not have to be active

    Try this, look at the open_tran column

    SELECT
        p1.SPID AS blockedSPID, p2.SPID AS blockingSPID, ...
    FROM 
        master..sysprocesses p1
        JOIN
        master..sysprocesses p2 ON p1.blocked = p2.spid
    

    Following on, this script gives you open transactions, last SQL and plan.

    And have a read of KB 224453 for good measure

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

Sidebar

Related Questions

using sp_who2 I found that a process is executing a select that has been
After running exec sp_lock on one of our databases we found there's close to
Running the static analyzer on this piece of code: - (id) readForeignPref { CFPropertyListRef
Running the command generates new rails projects: $ rails generate controller home index The
I have a simple SQL query that when run from C# takes over 30
the situation is that there are certain stored procedures and/or ad-hoc SQL that is
I'm running into a very annoying issue. One of our SPROC is building up
By running System.loadLibrary(myAPI) , I verified that the DLL file myAPI.dll can be successfully
I'm looking at sp_who2 and it appears as though all processes are in a
I'm currently writing a small app that takes data provided by an SQL stored

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.