Avoiding deadlock by using NOLOCK hint

前端 未结 3 997
野趣味
野趣味 2021-02-06 00:18

Once in a while I get following error in production enviornment which goes away on running the same stored procedure again.

Transaction (Process ID 86) wa

3条回答
  •  迷失自我
    2021-02-06 00:40

    Here is a good link on learning to troubleshoot deadlocks. I always try avoid using nolock for the reasons above. Also you might want to better understand Lock Compatibility.

提交回复
热议问题