How does one SELECT block another?

Posted by Krip on Stack Overflow See other posts from Stack Overflow or by Krip
Published on 2010-06-08T17:59:44Z Indexed on 2010/06/08 18:52 UTC
Read the original article Hit count: 234

Filed under:
|
|
|

I'm looking at output of SP_WhoIsActive on SQL Server 2005, and it's telling me one session is blocking another - fine. However they both are running a SELECT. How does one SELECT block another? Shouldn't they both be acquiring shared locks (which are compatible with one another)?

Some more details: Neither session has an open transaction count - so they are stand-alone.

The queries join a view with a table.

They are complex queries which join lots of tables and results in 10,000 or so reads.

Any insight much appreciated.

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about tsql