多线程处理sql server2008出现Transaction (Process ID) was deadlocked on lock resources with another process and has been chose问题

多线程处理sql server2008某个表中的数据时,在Update记录的时候出现了【Transaction (Process ID 146) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction】显示的错误是因为处理的表没有设置主键,而更新时是根据主键进行更新的。

posted @ 2016-07-07 15:38  会弹猫的吉他  阅读(8037)  评论(0编辑  收藏  举报