Importing plans from a user table

sp_import_qpgroup copies plans from tables created by sp_export_qpgroup into a group in sysqueryplans. This example copies the plans from the table tempdb..mplans into ap_stdin, assigning the user ID for the Database Owner:

sp_import_qpgroup "tempdb..mplans", dbo, ap_stdin

You cannot copy plans into a group that already contains plans for the specified user.