sp_drop_qpgroup

Description

Drops an abstract plan group.

Syntax

sp_drop_qpgroup group

Parameters

group

is the name of the abstract plan group to drop.

Examples

Example 1

Drops the abstract plan group “dev_test”:

sp_drop_qpgroup dev_test

Usage

Permissions

The permission checks for sp_drop_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

System procedures sp_drop_all_qplans, sp_help_qpgroup