sp_drop_qpgroup

Drops an abstract plan group.

Syntax

sp_drop_qpgroup group

Parameters

Examples

Usage

You cannot:
  • Drop the default groups, ap_stdin and ap_stdout.

  • Drop a group that contains plans. To drop all of the plans in a a group, use sp_drop_all_qplans. To see a list of groups and the number of plans they contain, use sp_help_qpgroup.

  • Run sp_drop_qpgroup in a transaction.

Permissions

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