Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sleeping (awaiting command) process blocking others

Status
Not open for further replies.

vadimg

IS-IT--Management
Joined
Oct 25, 2001
Messages
152
Location
US
Hi Gurus!!

SQL Server 2000
Windows 2000 Advanced Server

Can a process whose status is 'sleeping' and command is 'awaiting command' be blocking other processes?

well... i know it can, i just don't know why... Any help is greatly appreciated!!!!!!!!

sp_who2 output (only relevant columns):

spid status blkby command last_batch
97 sleeping . AWAITING COMMAND 02/25 17:31:00
135 sleeping 97 SELECT 02/25 17:31:00



 
possibly the transaction for spid 97 has not committed or rolled back, and it still holds a lock on a table that spid 135 is trying to access?
it's usually the culprit when i get that sort of thing!

hope this helps
Maria
 
Maria, thanks for the advice...
You're right: if spid 97 is not committed/rolled back it will hold the locks, and sp_who2 will show it as a 'sleeping' process that is 'AWAITING COMMAND'.

But if the transaction executed by 97 IS commited. Is it possible for 97 to still hold on to any resources?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top