1 restore database [DataBase] with recovery 2 3 ALTER DATABASE DataBase SET OFFLINE WITH ROLLBACK IMMEDIATE 4 5 select object_id,session_id,locked_mode from v$locked_object; 6 7 select request_session_id spid,OBJECT_NAME(resource_associated_entity_id) tableName 8 from sys.dm_tran_locks where resource_type='OBJECT' 9 10 kill 4