tsql - Rollback trans and unlock tables on SQL Server -
hy , had problems sql server
because of unknown transactions left opened or lock table, , read many suggestion avoid restarting server
until found , , seems work
have others suggestion release locks , rollback trans ?
because reserved on running on production server
use master; go alter database [db_dev] set single_user rollback immediate; alter database [db_dev] set multi_user; go
you can check blocking process using
sp_who2
then
kill spid
setting single_user reverting drop connections database. can dangerous on production servers.