Sql数据库中的死锁错误 [英] Deadlock error in Sql Database

查看:78
本文介绍了Sql数据库中的死锁错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hai,



在数据库中,当工作在一个插入查询时出现死锁错误。

如何解决这个问题?



预先感谢您的肯定回复。

Hai,

In database, while working in One insert query coming deadlock error.
How to solve this issue?

Advance Thanks for positive reply.

推荐答案

insert命令可能试图锁定一个索引或两个索引,并且索引被锁定为另一个线程。



当你锁定资源时出现了一个很大的错误对于每个线程的不同顺序的查询。检查查询的顺序并在所有线程中以相同的顺序锁定资源
The insert command might be trying to lock one index or both indexes and the indexes are locked for the other thread.

A huge mistake is when you lock resources for queries in different order of each thread. Check the order of the queries and lock the resources in the same order in all of the threads


这篇关于Sql数据库中的死锁错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆