Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Identfying current users of database

Status
Not open for further replies.

PeDa

Technical User
Oct 10, 2002
227
0
0
NL
Even though I know that others are connected to the database, a script like
Code:
select DB_NAME(dbid) as 'Database', loginame as LoginName
FROM sys.sysprocesses WHERE DB_NAME(dbid) ='myDatabase'
only shows myself, and not the other users. Any suggestions?
 
Thank you; unfortunately sp_who and sp_who2 yield the same result as my script: only me
 
Thank you. I was beginning to fear this. I shall see if the IT-department will GRANT VIEW SERVER STATE to me.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top