sp_import_qpgroup

Description

Imports abstract plans from a user table into an abstract plan group.

Syntax

sp_import_qpgroup tab, usr, group

Parameters

tab

is the name of a table from which to copy the plans. You can specify a database name, but not an owner name, in the form dbname..tablename. The total length must be 30 characters or less.

usr

is the name of the user whose ID should be assigned to the abstract plans when they are imported.

group

is the name of the abstract plan group that contains the plans to be imported.

Examples

Example 1

Copies plans from the table moveplans to the new_plans group, giving them the user ID for the Database Owner:

sp_import_qpgroup moveplans, dbo, new_plans

Usage

Permissions

Only a System Administrator or the Database Owner can execute sp_import_qpgroup.

See also

Commands create plan

System procedures sp_copy_all_qplans, sp_copy_qplan, sp_drop_all_qplans, sp_drop_qpgroup, sp_export_qpgroup, sp_help_qpgroup