SELECT DB_NAME(dbid) as DataBase_Name, COUNT(dbid) as Number_Of_Connections, loginame as Login_NameFROM sys.sysprocessesWHERE dbid > 0GROUP BY dbid, loginame
Login to post response