<pre>select * from sys.sysusers (nolock) or
select * from sys.database_principals (nolock)</pre>
This will get you the list of "named" users of the database.
<pre>select * from sys.server_principals (nolock)
where type_desc = 'WINDOWS_LOGIN'</pre>
This will get you the list of users authorized by their Windows authentications. (This is probably what you really want.)
Last Wiki Answer Submitted: May 24, 2010 7:46 pm by Kccrosser3,830 pts.