事务死锁处理 [英] Transaction deadlock handling

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

问题描述

我在vb应用程序的模块中选择2个stmts和一个insert stament.因此,如果一个用户执行,就不会有任何问题,但是,如果多个用户使用它,则会出现事务死锁错误.

rs.Open strQ,cnn,adOpenKeyset,adLockReadOnly

它在select中使用上面的stm.
我应该如何修改,以避免在多个用户尝试访问同一模块时引发的事务死锁错误.请帮助

I do 2 select stmts and an insert stament in a module of my vb application. hence if a single user executes there isnt any problem, but if multiple user uses it gives transaction deadlock error.

rs.Open strQ, cnn, adOpenKeyset, adLockReadOnly

it uses the above stm in the select.
How should i modify to avoid this transaction deadlock error which raises when multiple users try to access the same module. Pls help

推荐答案

查看这些文章

SQL SERVER-如何处理死锁 [傻瓜数据库死锁 [在.NET中进行锁定的6种方法(悲观和乐观) [
Look at these articles

SQL SERVER - How To Handle Deadlock[^]
Database Deadlocks for Dummies[^]
6 ways of doing locking in .NET (Pessimistic and optimistic)[^]


尝试
如何处理SQL Server中的死锁[
Try
How to handle deadlock in SQL Server[^]


这篇关于事务死锁处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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