2013年3月6日 星期三

ms-sql 資料庫連線數

參考引用
--
select db_name(dbid) , count(*) 'connections count'
  1. from master..sysprocesses
  2. where spid > 50
  3. group by db_name(dbid)
  4. order by count(*) desc

沒有留言:

張貼留言