1. 检查数据库是否有表被锁 select object_name(resource_associated_entity_id) as tableName, request_session_id as pid from sys.dm_tran_locks where resource_type = 'OBJECT'; 2. 结束对应进程 kill pid