找到活动的SQL连接,并杀掉它!
程序员文章站
2022-05-16 17:12:51
...
select db_name(dbid) as [Database Name], count(dbid) as [No Of Connections], loginame as [Login Name] from sys.sysprocesses where dbid > 0 group by dbid, loginame
下一篇: 通过数据库数据构建树结构(二)