连到master这个数据库写如下语句 select * from sysprocesses where dbid in (select dbid from sysdatabases where name=\'iChaoShi1\') 将所以连接iChaoShi1这个数据库的连接记录都求出来。 sysprocesses这个表记录所以连接到SQL SERVER数据库的连接。 相关文章: 2021-08-22 2021-11-23 2021-11-23 2021-11-23 2021-10-15