December 14, 2010 at 1:14 pm
I have been asked to give a listing of all users in a DB that have 'administrative access'
I'm assuming that means 'db_owner, db_securityadmin', etc...
Is there a way I can use sp_helpuser to give me the admin level users - only?
December 15, 2010 at 3:44 am
Hi
Pls use this query
SELECT * FROM dba_users ORDER BY CREATED DESC
or
SELECT * FROM dba_users WHERE username LIKE 'xxx%' ORDER BY CREATED DESC;
December 15, 2010 at 3:47 am
Hi
also go thru this link, if required:
http://nickstips.wordpress.com/2010/10/07/sql-get-login-database-and-server-role-membership/
December 15, 2010 at 7:41 am
dba_users?
December 15, 2010 at 11:03 pm
Yes..
The user executing that should have the grant privileges...
December 16, 2010 at 8:42 am
dba_users is not a table...?
December 17, 2010 at 3:50 am
Hi
If you want database users then sp_helpusers will give them. If you want
logins then sp_helplogins will list them.
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply