Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Finding users logged into Multiple machines

Author  Topic 

rosejr
Starting Member

12 Posts

Posted - 2007-04-16 : 17:54:21
We are having a problem where users are sharing id's with more access to the server.

How would I find out if someone is logging into a particular database server from different machines? Other than using SP_WHO2 I really only want a query with the id,database,program and server.

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-04-17 : 11:26:04
You can query master..sysprocesses.
Go to Top of Page

craig79
Starting Member

33 Posts

Posted - 2007-04-18 : 02:17:50

select spid,hostname,program_name,nt_domain,nt_username,loginame from master.dbo.sysprocesses
Go to Top of Page
   

- Advertisement -