user1254579
user1254579

Reputation: 4009

why sp_who2 shows the query status as sleeping ,eventhough it has been running

There is a delete query that has been running for an hour.

Just fired sp_who2 and it shows the status of the query as sleeping, even though it is running. Why sp_who2 shows the query status as sleeping?

Upvotes: 0

Views: 6040

Answers (2)

FpontoDesenv
FpontoDesenv

Reputation: 162

you can try with:

dbcc inputbuffer(@Spid)

take the SPID with the sp_who2 and see exactly what the is running for that user.

Upvotes: 3

Sonam
Sonam

Reputation: 3466

A process is considered sleeping occasionally when its waits for some resources or being blocked by some other process.

Upvotes: 2

Related Questions