Reports information on an abstract plan group.
sp_help_qpgroup [ group [, mode ]]
sp_help_qpgroup
Group GID Plans ----------------------- ----------- ----------- ap_stdin 1 0 ap_stdout 2 0 dev_test 3 209
sp_help_qpgroup test_plans
Query plans group 'test_plans', GID 8 Total Rows Total QueryPlans ----------- ---------------- 6 3 sysqueryplans rows consumption, number of query plans per row count Rows Plans ----------- ----------- 2 3 Hashkeys ----------- 3 There is no hash key collision in this group.
When used with an abstract plan group name, and no mode parameter, the default mode for sp_help_qpgroup is full.
Hash-key collisions indicate that more than one plan for a particular user has the same hash-key value. When there are hash key collisions, the query text of each query with the matching hash key must be compared to the user’s query text in order to identify the matching query, so performance is slightly degraded.
The permission checks for sp_help_qpgroup differ based on your granular permissions settings.
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage abstract plans privilege. |
Disabled | With granular permissions disabled, you must be the database owner or a user with sa_role. Any user can execute sp_help_qpgroup for their own abstract plan group. |
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | 38 |
Audit option | exec_procedure |
Command or access audited | Execution of a procedure |
Information in extrainfo |
|