SQL Server deadlock issue

Posted by George2 on Stack Overflow See other posts from Stack Overflow or by George2
Published on 2010-06-01T06:39:31Z Indexed on 2010/06/01 6:43 UTC
Read the original article Hit count: 222

Hello everyone,

I am using SQL Server 2008 Enterprise. I am wondering whether dead lock issue is only caused by cross dependencies (e.g. task A has lock on L1 but waits on lock on L2, and at the same time, task B has lock on L2 but waits on lock on L1)? Are there any other reasons and scenarios which will cause deadlock?

Are there any other way which will causes dead lock -- e.g. timeout (a S/I/D/U statement do not return for a very long time, and deadlock error will be returned) or can not acquire lock for a long time but not caused by cross-dependencies (e.g. task C needs to get lock on table T, but another task D acquire the lock on table T without releasing the lock, which causes task C not be able to get lock on table T for a long time)?

thanks in advance, George

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about sql-server-2008