Queries to find out number connections to database server:
Total number of connections to all servers:
SELECTDB_NAME(dbid) as DBName,COUNT(dbid) as NumberOfConnections,loginame as LoginNameFROMsys.sysprocessesWHERE dbid > 0GROUP BYdbid , loginame
SELECTCOUNT(dbid) as TotalConnectionsFROMsys.sysprocessesWHEREdbid > 0
For detailed description:
sp_who2 'Active'
To see the max connections supported by the database server, use the following query:
Select @@MAX_CONNECTIONS
Comments
Post a Comment