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 replication error Cannot find the dbo or user defined function........

BIT Version

Admin Permissions