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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T19:38:06+00:00 2026-05-11T19:38:06+00:00

We had a problem today on our dev server where a process locked one

  • 0

We had a problem today on our dev server where a process locked one table, stopping all other queries on that table to work. When running sql_who2 the blkBy columns value was -2, but the -2 was not in the process list.

When running DBCC INPUTBUFFER (-2) I got the exception Invalid SPID -2 specified.

When running beta_lockinfo I see all the tables and indexes it locks, but all other information is null, except that the ownertype was Transaction.

When restarting the webapp(did a change in web.config) the lock dissapered and the same did all the traces of the -2 SPID

My question is why is the SPID a negative value and why can I not get any info about it?

  • 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-11T19:38:07+00:00Added an answer on May 11, 2026 at 7:38 pm

    A SPID of -2 represents that your process was blocked by an orphaned distributed transaction.

    You can use KILL 'GUID-OF-THE-UOW' to terminate orphaned distributed transactions, or any other distributed transaction. To do this you’ll need to get the GUID of the Unit of Work (UOW) from sys.dm_tran_locks.request_owner_guid.

    SELECT
        [tl].[request_owner_guid]
    FROM
        sys.dm_tran_locks   tl
    WHERE
        [tl].[request_session_id] = -2
    

    -2 is just an artificial association. The session ID of -2 just makes it easier to identify orphaned transactions by querying the session ID column in the dynamic management views.

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

Sidebar

Ask A Question

Stats

  • Questions 122k
  • Answers 122k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer what you have will work as long as table1 has… May 12, 2026 at 12:42 am
  • Editorial Team
    Editorial Team added an answer Try this: <asp:TemplateField> <ItemTemplate> <asp:TextBox ID="textDateSent" runat="server"> </asp:TextBox> <input type="button"… May 12, 2026 at 12:42 am
  • Editorial Team
    Editorial Team added an answer I'm not sure you have a real problem here, but… May 12, 2026 at 12:42 am

Related Questions

We have an x-files problem with our .NET application. Or, rather, hybrid Win32 and
Our application is a hybrid Win32 unmanaged application and a .NET 2.0 managed application.
We've been having intermittent problems causing users to be forcibly logged out of out
RPO 1.0 (Runtime Page Optimizer) is a recently (today?) released component for ASP and

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.