sp_addgroup

Description

Adds a group to a database. Groups are used as collective names in granting and revoking privileges.

Syntax

sp_addgroup grpname

Parameters

grpname

is the name of the group. Group names must conform to the rules for identifiers.

Examples

Example 1

Creates a group named accounting in the current database:

sp_addgroup accounting

Usage

Permissions

Only the Database Owner, a System Administrator, or a System Security Officer can execute sp_addgroup.

See also

Commands grant, revoke

System procedures sp_adduser, sp_changegroup, sp_dropgroup, sp_helpgroup