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

SQL Server PSProvider SQL Server Authentication

How to calculate the delta size while diffing the files in TeamFoundationServer ?

How to capture screen in silverlight apps