sp_add_qpgroup

Adds an abstract plan group.

Syntax

sp_add_qpgroup new_name

Parameters

Examples

Usage

Use sp_add_qpgroup to add abstract plan groups for use in capturing or creating abstract plans. The abstract plan group must exist before you can create, save, or copy plans into a group.

You cannot run sp_add_qpgroup in a transaction.

See also set in Reference Manual: Commands.

Permissions

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

SettingDescription
Enabled

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

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:

InformationValues
Event

38

Audit option

exec_procedure

Command or access audited

Execution of a procedure

Information in extrainfo
  • 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

Related reference
sp_help_qpgroup