// To find out the user connection in the database
SELECT
DB_NAME(dbid) as DBName,
COUNT(dbid) as
NumberOfConnections,
loginame as
LoginName
FROM
sys.sysprocesses
WHERE
dbid > 0
GROUP BY
dbid, loginame
No comments:
Post a Comment