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

Admin Permissions

Problems installing SQL Server 2014 - There was a failure to calculate the applicability of setting LICENSEPATH.