sp_rename_qpgroup

Description

Renames an abstract plan group.

Syntax

sp_rename_qpgroup old_name, new_name

Parameters

old_name

is the current name of the abstract plan group.

new_name

is the new name for the group. The specified new_name cannot be the name of an existing abstract plan group in the database.

Examples

Example 1

sp_rename_qpgroup dev_plans, prod_plans

Changes the name of the group from dev_plans to prod_plans.

Usage

Permissions

Only a system administrator or the database owner can execute sp_rename_qpgroup.

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_help_qpgroup