sp_add_qpgroup

Description

Adds an abstract plan group.

Syntax

sp_add_qpgroup new_name

Parameters

new_name

is the name of the new abstract plan group. Group names must be valid identifiers.

Examples

Example 1

Creates a new abstract plan group named dev_plans:

sp_add_qpgroup dev_plans

Usage

Permissions

The permission checks for sp_add_qpgroup differ based on your granular permissions settings.

Granular permissions enabled

With granular permissions enabled, you must be a user with manage abstract plans privilege.

Granular permissions disabled

With granular permissions disabled, you must be the database owner or a user with sa_role

Auditing

Values in event and extrainfo columns from the sysaudits table are:

Event

Audit option

Command or access audited

Information in extrainfo

38

exec_procedure

Execution of a procedure

  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

See also

Commands set

System procedures sp_help_qpgroup