Subsonic: Select on a View, locks the table update?

Posted by Jay on Stack Overflow See other posts from Stack Overflow or by Jay
Published on 2010-02-01T00:00:11Z Indexed on 2010/05/15 14:04 UTC
Read the original article Hit count: 161

Filed under:
|
|
|
|

Hi, I have a Web site live and running now. I am using the Subsonic to handle the database connections etc. I am getting time out expired error while updating a table (say Employee). When I check sp_who2, I see the suspended connection for the PID which is updating with a block by anothor pid, so I run the profiler and found out when ever this suspended connection occur, the blocked pid is a select statement on the view (say ActiveEmployees, which is the same as the table but with some where conditions).

Anyone know why a Select statement on the view could cause failure in update. If it is other (like select fails due to update) may be reasonable. Is there any way for me to make select on a view without locking the table?

PS: I am using the Sql server 2005 and subsonic 2.2.

Thanks

© Stack Overflow or respective owner

Related posts about subsonic

Related posts about sql-server