asp.net - 如何查看 SQL 2008 锁和阻塞表

标签 asp.net sql-server timeout locking deadlock

在我的应用程序的 ASP.NET 执行期间,SQL 2008 Express 似乎持有一些锁定,我得到了

Timeout expired.  The timeout period elapsed prior to completion of

the operation or the server is not responding

也许我的某些查询没有优化。 Visual Studio 崩溃并显示:

Microsoft Visual Studio may be unstable now. It is recommended that

you save all files and exit.

我需要查看什么查询阻塞了我的表,但我有 Express 版本。我该怎么办?

谢谢

最佳答案

您可以查询sys.dm_tran_locks动态 View 来获取此信息。去 here在 MSDN 上获取更多信息。

关于asp.net - 如何查看 SQL 2008 锁和阻塞表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/906315/

相关文章:

sql-server - 批量插入时保留行顺序

c# - 错误 "fetch out of sequence"从 C# 中的 Oracle 函数返回表,其中函数使用 dblink 到 SQL Server

asp.net - 如何在asp.net中的多行文本框中保留回车键和制表符

asp.net - 在右上角显示数字的输入按钮

sql - 在 Windows 8 中卸载 SQL Server Management Studio 2014

java - 使用 Java 的 SwingWorker 使任务超时

Python 多处理模块 : join processes with timeout

java - Spark streaming mapWithState 超时延迟?

asp.net - 如何从.NET调用node.js REST API

c# - 文本框文本更改时不触发的方法