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.
Author |
Topic |
tkothari
Starting Member
3 Posts |
Posted - 2012-09-10 : 11:37:34
|
I need to find out about 1 database only, all the database user and their roles, group by groupname |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
tkothari
Starting Member
3 Posts |
|
Bustaz Kool
Master Smack Fu Yak Hacker
1834 Posts |
Posted - 2012-09-17 : 18:19:51
|
[CODE]select roles.name, members.namefrom sys.database_role_members rminner join sys.database_principals roles on rm.role_principal_id = roles.principal_idinner join sys.database_principals members on rm.member_principal_id = members.principal_idorder by roles.name, members.name[/CODE]=================================================We are far more concerned about the desecration of the flag than we are about the desecration of our land. -Wendell Berry |
|
|
|
|
|