SP_HELPGROUP ,SP_HELPROLE, SP_HELPROLEMEMBER
Both Procedures wil give the information about roles(groups) and Users(Members) in the Database.
SP_HELPROLE:
EXEC SP_HELPROLE @rolename='db_owner'
--OR
EXEC SP_HELPROLE
Gives the information about roles in the Datbase
SP_HELPGROUP:
EXEC SP_HELPGROUP @grpname='db_owner'
--OR
EXEC SP_HELPGROUP
Gives the Results about which user under which group.
SP_HELPROLEMEMBER:
EXEC SP_HELPROLEMEMBER @rolename='db_owner'
--OR
EXEC SP_HELPROLEMEMBER
Gives the results members of a role.
SP_HELPROLE:
EXEC SP_HELPROLE @rolename='db_owner'
--OR
EXEC SP_HELPROLE
Gives the information about roles in the Datbase
SP_HELPGROUP:
EXEC SP_HELPGROUP @grpname='db_owner'
--OR
EXEC SP_HELPGROUP
Gives the Results about which user under which group.
SP_HELPROLEMEMBER:
EXEC SP_HELPROLEMEMBER @rolename='db_owner'
--OR
EXEC SP_HELPROLEMEMBER
Gives the results members of a role.
Comments