sp_drop_all_qplans

Description

Deletes all abstract plans in an abstract plan group.

Syntax

sp_drop_all_qplans name

Parameters

name

is the name of the abstract plan group from which to drop all plans.

Examples

Example 1

sp_drop_all_qplans dev_test

Usage

Permissions

Any user can execute sp_drop_all_qplans to drop plans that he or she owns. Only a System Administrator or Database Owner can drop plans owned by other users.

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_qplan, sp_drop_qpgroup