如何知道 SQL Server 2005 目前連線數量?
[*][系統管理工具] -> [效能] 檢視工具中觀察的可以即時得知目前資料庫的總體連線數[*]另外一個方法,使用下列的SQL語法即可:
SELECT cntr_value AS User_Connections FROM master..sysperfinfo as p
WHERE p.object_name = 'SQLServer:General Statistics' And p.counter_name = 'User Connections'
Reference: http://social.technet.microsoft.com/Forums/zh-TW/sqlservermanagementzhcht/thread/0b9dffc1-4543-4992-aba1-6e0edbb27df8
頁:
[1]