User per database


dear all,

a part enterprize manager how can query number of user connected prticular database.

regards

sufian

you can use sp_who, sp_who2 ,

select user_name(uid),*from sys.sysprocesses where dbid=db_id('somedatabase')

 

madhu

 



SQL Server  >  SQL Server Database Engine



Comments

Popular posts from this blog

BIT Version

SQL Server PSProvider SQL Server Authentication

set datagrid current record to inserted record