SELECT
DB_NAME(dbid) as DBName,
COUNT(dbid) as NumberOfConnections,
loginame as LoginName FROM sys.sysprocesses
WHERE dbid > 0 GROUP BY dbid, loginame;
Sign up here with your email
.Net tips,.Net Interview Tips,Sql Server,Jquery,Javascript notes,AngularJS,Asp.net,Ajax
ConversionConversion EmoticonEmoticon