Unlock sql server table

EXEC sp_who active - look at what caused the obstruction, blk blk <> 0

- Unlock table
DECLARE @spid int
the Set @spid = 274 - process lock table
DECLARE @sql VARCHAR (1000)
the SET @ SQL = 'the kill' + Cast (@spid AS VARCHAR)
Exec (@sql)

Guess you like

Origin www.cnblogs.com/dinggf/p/11995706.html