How does one Determine the number of Active users logged into a SQL Server Database
I want to use the info to control concurrent licensing for my Application
How does one Determine the number of Active users logged into a SQL Server Database
I want to use the info to control concurrent licensing for my Application
Determining the number of Active users logged into a SQL Server Database
mohawk
c_hales
MarkInNB
This query will give you a count grouped by DB, you can also use sp_who or sp_who2
select db_name(dbid),count(*) from master..sysprocesses
where spid > 49 --everyting below 50 is SQL Server itself
group by db_name(dbid)
Denis the SQL Menace
http://sqlservercode.blogspot.com/