Reports information about a group or all groups in the current database.
sp_helpgroup [grpname]
where
When grpname is specified, sp_helpgroup reports on the specified group. If no parameter is supplied, sp_helpgroup reports on all groups in the database.
To get a report on the default group public, enclose the name public in quotation marks because it is a reserved word.
This example displays information about the hackers group.
sp_helpgroup hackers
This example displays information about all groups in the current database.
sp_helpgroup
Execute permission defaults to the public group.
sysusers
| GRANT | sp_dropgroup |
| REVOKE | sp_helprotect |
| sp_addgroup | sp_helpuser |
| sp_changegroup |