在我的应用程序的 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/