SQL SERVER中如何解除死锁?

今天运行程序,因为其中涉及存储过程和大量的数据更新,第一次遇到了数据库死锁的情况。
报错信息如下:
Transaction (Process ID 56) was deadlocked on {lock} resources with another process and has been chosen as the deadlock victim. Rerun the transaction.

如果解除死锁?我从没遇到过,查看了资料,很简单

kill ID


本次就是 KILL 56

你可能感兴趣的:(SQL Server)