Deletes all abstract plans in an abstract plan group.
sp_drop_all_qplans name
is the name of the abstract plan group from which to drop all plans.
sp_drop_all_qplans dev_test
To drop individual plans, use sp_drop_qplan.
To see the names of abstract plan groups in the current database, use sp_help_qpgroup.
sp_drop_all_qplans silently drops all plans in the group that belong to the specified user, or all plans in the group, if it is executed by a System Administrator or Database Owner.
Any user can execute sp_drop_all_qplans to drop plans that he or she owns. Only a System Administrator or Database Owner can drop plans owned by other users.
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 |
|
System procedures sp_drop_qplan, sp_drop_qpgroup