USE master
go
DECLARE @Sql NVARCHAR(max)
SET @Sql = ''
select @Sql = @Sql + 'kill ' + cast(spid as varchar(50)) + ';' from sys.sysprocesses where dbid = DB_ID('DatabaseName')
EXEC(@Sql)

 

相关文章:

  • 2022-12-23
  • 2021-08-18
  • 2021-12-12
  • 2021-12-27
  • 2021-08-11
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案