标签: sql-server indexing locking deadlock nolock
SUBJ。
查看死锁图和下面的语句。为什么会这样?
declare @SomeValue bigint = 12345 select <SOME FIELDS> from [HealthEvent].[StateMachineInstanceEventTypeQueue] nolock where SomeField = @SomeValue order by id desc
该表在SomeField上没有索引
查看死锁图: http://i58.tinypic.com/rbfmex.jpg