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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sql to list all users in database 1

Status
Not open for further replies.

tashend

Technical User
Aug 25, 2005
2
GB
Does anyone out there maybe have a handy sql statement to return all logins on a Sybase server, the databases/tables they have access to and what type of access they have to each database e.g. select/insert etc

Unfortunately we are still on very old version ofe Sybase(11.0.3)

Thanks
 
yes..try this:

use DBName
exec sp_helpgroup GroupName

this lists group wise users present in each database...

-DNG
 
also...

to get all users in a particular database

exec sp_helpuser

look for these other stored procedures also...

select name,password from syslogins

sp_displaylogin UserName

exec sp_dispayroles UserName, expand_down


-DNG
 
also i have written a FAQ on this...take your time to go through it...

faq187-6042

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top