mickeytech2000
Mr or Mrs. 500
Points: 556
More actions
March 31, 2007 at 6:38 pm
#123267
I am trying to count the number of current DB connections. sp_who gives infor on all dbs. How do I filter out (count) the connections to a database?
Thank you.
Mickey
MohammedU
SSCoach
Points: 19644
March 31, 2007 at 11:03 pm
#697983
select count(*) from sysprocesses where db_name(dbid)= '<dbname>'
MohammedUMicrosoft SQL Server MVP
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply