Friday, January 24, 2014

How to know connection details in connection pooling in sql server?

SELECT
    DB_NAME(dbid) as DBName,
    COUNT(dbid) as NumberOfConnections,
    loginame as LoginName
FROM
    sys.sysprocesses
WHERE
    dbid > 0
GROUP BY
    dbid, loginame
;


also check  :
sp_who2 'Active'

No comments:

Post a Comment