修改日期 | 修改人 | 备注 |
2020-09-10 09:53:39[当前版本] | 王天宇 | 1.0 |
2020-09-10 09:52:50 | 王天宇 | 1.0 |
用语句查询出连接访问到数据库存储过程的进程
SELECT spid,hostname,program_name FROM
[Master].[dbo].[SYSPROCESSES] WHERE [DBID] IN ( SELECT)
找到查询结果中泰格中间件的spid填到下列语句@spid中强行终止进程
declare @spid int
Set @spid = --锁表进程
declare @sql varchar(1000)
set @sql='kill '+cast(@spid as varchar)
exec(@sql)