查看当前数据库的连接数量与详细信息: select * from sys.sysprocesses where dbid= db_id('数据库名称') 查询结果有几条就代表着现在该库有几个连接正在使用。