sp_set_qplan

Description

Changes the text of the abstract plan of an existing plan without changing the associated query.

Syntax

sp_set_qplan id, plan

Parameters

id

is the ID of the abstract plan.

plan

is a new abstract plan.

Examples

Example 1

sp_set_qplan 563789159, 
        "( g_join (scan t1) (scan t2))"

Usage

Permissions

Any user can execute sp_set_qplan to change the text for a plan that he or she owns. Only the System Administrator or the Database Owner can change the text for a plan that belongs to another user.

See also

Commands create plan

System procedures sp_drop_qplan, sp_find_qplan, sp_help_qpgroup, sp_help_qplan