看SQL SERVER数据库当前连接数

select * from sysprocesses where dbid in (select dbid from sysdatabases where name='dbname')
posted @ 2010-04-30 17:03  94cool  阅读(217)  评论(0)    收藏  举报