Question:

NO OF ACTIVE USERS in db

by Syed Ghulam Ali Shah  |  3 years, 3 month(s) ago

0 LIKES UnLike

NO OF ACTIVE USERS in db

 Tags: active, db, Users

   Report

1 ANSWERS

  1. Tayyab
    If you are using SQL Server then following will help you to find number of active users in a DataBase select db_name(dbid),count(*) from master..sysprocesses where spid > 49 AND db_name(dbid)='DATABASE NAME' group by db_name(dbid) Note: SPID below 50 is SQL Server itself

Syed Ghulam Ali Shah QUESTIONS

Question Stats

Latest activity: 3 years, 3 month(s) ago.
This question has been viewed 143 times and has 1 answers.

1 User is following this question

Syed Ghulam Ali Shah

Similar Questions

BECOME A GUIDE

Share your knowledge and help people by answering questions.