SQLServer 如何知道连接某个数据库的人数 可以使用命令: use masterselect count(*) from master.sysprocesses where dbid=db_id('数据库名') 知道当前有几个用户连接到数据库上。