SELECT db_name(dbid) as DatabaseName, count(dbid) as NoOfConnections,loginame as LoginNameFROM sys.sysprocessesWHERE dbid > 0GROUP BY dbid, loginame
No comments:
Post a Comment