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?