SELECT
DB_NAME(dbid) as DBName,
COUNT(dbid) as NumberOfConnections,
loginame as LoginName
FROM
sys.sysprocesses
WHERE
dbid > 0
GROUP BY
dbid, loginame;
SQL Server - See Active Connections
-
admin
- Site Admin
- Posts: 31
- Joined: Mon Sep 16, 2024 5:00 pm
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest