You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sp_QuickieStore/README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ Use the `@expert_mode` parameter to return additional details.
51
51
| @query_text_search | nvarchar | query text to search for | a string; leading and trailing wildcards will be added if missing | NULL |
52
52
| @query_text_search_not | nvarchar | query text to exclude | a string; leading and trailing wildcards will be added if missing | NULL |
53
53
| @escape_brackets | bit | Set this bit to 1 to search for query text containing square brackets (common in .NET Entity Framework and other ORM queries) | 0 or 1 | 0 |
54
-
| @escape_character | nchar | Sets the ESCAPE character for special character searches, defaults to the SQL standard backslash (\) character | some escape character, SQL standard is backslash (\)|\|
54
+
| @escape_character | nchar | Sets the ESCAPE character for special character searches, defaults to the SQL standard backslash (\\) character | some escape character, SQL standard is backslash (\\) |\|
55
55
| @only_queries_with_hints | bit | only return queries with query hints | 0 or 1 | 0 |
56
56
| @only_queries_with_feedback | bit | only return queries with query feedback | 0 or 1 | 0 |
57
57
| @only_queries_with_variants | bit | only return queries with query variants | 0 or 1 | 0 |
@@ -73,6 +73,7 @@ Use the `@expert_mode` parameter to return additional details.
73
73
| @regression_comparator | varchar | what difference to use ('relative' or 'absolute') when comparing @sort_order's metric for the normal time period with any regression time period. | relative, absolute | NULL; absolute if @regression_baseline_start_date is specified |
74
74
| @regression_direction | varchar | when comparing against any regression baseline, what do you want the results sorted by ('magnitude', 'improved', or 'regressed')? | regressed, worse, improved, better, magnitude, absolute, whatever | NULL; regressed if @regression_baseline_start_date is specified |
75
75
| @include_query_hash_totals | bit | will add an additional column to final output with total resource usage by query hash | 0 or 1 | 0 |
76
+
| @include_maintenance | bit | Set this bit to 1 to add maintenance operations such as index creation to the result set | 0 or 1 | 0 |
76
77
|@help| bit | how you got here | 0 or 1 | 0 |
77
78
|@debug| bit | prints dynamic sql, statement length, parameter and variable values, and raw temp table contents | 0 or 1 | 0 |
78
79
| @troubleshoot_performance | bit | set statistics xml on for queries against views | 0 or 1 | 0 |
Copy file name to clipboardExpand all lines: sp_QuickieStore/sp_QuickieStore.sql
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -100,6 +100,7 @@ ALTER PROCEDURE
100
100
@regression_comparator varchar(20) =NULL, /*what difference to use ('relative' or 'absolute') when comparing @sort_order's metric for the normal time period with the regression time period.*/
101
101
@regression_direction varchar(20) =NULL, /*when comparing against the regression baseline, want do you want the results sorted by ('magnitude', 'improved', or 'regressed')?*/
102
102
@include_query_hash_totals bit=0, /*will add an additional column to final output with total resource usage by query hash, may be skewed by query_hash and query_plan_hash bugs with forced plans/plan guides*/
103
+
@include_maintenance bit=0, /*Set this bit to 1 to add maintenance operations such as index creation to the result set*/
103
104
@help bit=0, /*return available parameter details, etc.*/
104
105
@debug bit=0, /*prints dynamic sql, statement length, parameter and variable values, and raw temp table contents*/
105
106
@troubleshoot_performance bit=0, /*set statistics xml on for queries against views*/
@@ -215,6 +216,7 @@ BEGIN
215
216
WHENN'@regression_comparator'THEN'what difference to use (''relative'' or ''absolute'') when comparing @sort_order''s metric for the normal time period with any regression time period.'
216
217
WHENN'@regression_direction'THEN'when comparing against any regression baseline, what do you want the results sorted by (''magnitude'', ''improved'', or ''regressed'')?'
217
218
WHENN'@include_query_hash_totals'THENN'will add an additional column to final output with total resource usage by query hash, may be skewed by query_hash and query_plan_hash bugs with forced plans/plan guides'
219
+
WHENN'@include_maintenance'THENN'Set this bit to 1 to add maintenance operations such as index creation to the result set'
218
220
WHENN'@help'THEN'how you got here'
219
221
WHENN'@debug'THEN'prints dynamic sql, statement length, parameter and variable values, and raw temp table contents'
220
222
WHENN'@troubleshoot_performance'THEN'set statistics xml on for queries against views'
0 commit comments