Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我尝试运行 drop table 命令时,MSSQL 只是挂起,并且永远说“执行命令”我认为这与锁有关吗?
如何检查此类查询?
MSSQL 有 spsp_lock来查找锁表。尝试一下。
sp_lock
参考:http ://www.sqlhub.com/2009/07/find-table-being-locked-in-sql-server.html