sp_copy_qplan

Description

Copies one abstract plan to an abstract plan group.

Syntax

sp_copy_qplan src_id, dest_group

Parameters

src_id

is the ID of the abstract plan to copy.

dest_group

is the name of the destination abstract plan group.

Examples

Example 1

sp_copy_qplan 2140534659, ap_stdin

Usage

Permissions

Any user can execute sp_copy_qplan to copy a plan that he or she owns. Only the System Administrator or Database Owner can copy plans that are owned by other users.

See also

System procedures sp_copy_all_qplans, sp_help_qpgroup, sp_help_qplan, sp_import_qpgroup