Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sp_HealthParser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Typical result set will show you:
| @what_to_check | varchar | areas of system health to check | all, waits, disk, cpu, memory, system, locking (also accepts wait, blocking, blocks, deadlock, deadlocks, lock, locks) | all |
| @start_date | datetimeoffset | earliest date to show data for. A value without an offset (or with +00:00) is server local time, like the output. It is converted to UTC internally | a reasonable date | seven days back |
| @end_date | datetimeoffset | latest date to show data for. A value without an offset (or with +00:00) is server local time, like the output. It is converted to UTC internally | a reasonable date | current date |
| @warnings_only | bit | only show rows where a warning or error was reported (the blocked process report is not filtered) | NULL, 0, 1 | 0 |
| @warnings_only | bit | only show rows where a warning or error was reported (the blocked process report is not filtered). Memory broker rows count as a warning only when the notification is SHRINK. | NULL, 0, 1 | 0 |
| @database_name | sysname | database name to show blocking events for | the name of a database | NULL |
| @wait_duration_ms | bigint | minimum wait duration | the minimum duration of a wait for queries with interesting waits | 500 |
| @wait_round_interval_minutes | bigint | interval to round minutes to for wait stats | interval to round minutes to for top wait stats by count and duration | 60 |
Expand Down
4 changes: 2 additions & 2 deletions sp_HealthParser/sp_HealthParser.sql
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ BEGIN
WHEN N'@what_to_check' THEN N'areas of system health to check'
WHEN N'@start_date' THEN N'earliest date to show data for; a value without an offset (or with +00:00) is server local time, like the output; converted to UTC internally'
WHEN N'@end_date' THEN N'latest date to show data for; a value without an offset (or with +00:00) is server local time, like the output; converted to UTC internally'
WHEN N'@warnings_only' THEN N'only show rows where a warning or error was reported (the blocked process report is not filtered)'
WHEN N'@warnings_only' THEN N'only show rows where a warning or error was reported (the blocked process report is not filtered); memory broker rows count as a warning only when the notification is SHRINK'
WHEN N'@database_name' THEN N'database name to show blocking events for'
WHEN N'@wait_duration_ms' THEN N'minimum wait duration'
WHEN N'@wait_round_interval_minutes' THEN N'interval to round minutes to for wait stats'
Expand Down Expand Up @@ -4024,7 +4024,7 @@ AND ca.utc_timestamp < @end_date';
INTO #memory_broker_info
FROM #memory_broker AS mb
CROSS APPLY mb.memory_broker.nodes('//event') AS w(x)
WHERE (w.x.exist('(data[@name="notification"]/value[.= "RESOURCE_MEMPHYSICAL_LOW"])') = @warnings_only OR @warnings_only = 0)
WHERE (w.x.exist('(data[@name="notification"]/value[.= "SHRINK"])') = @warnings_only OR @warnings_only = 0)
OPTION(RECOMPILE, MAXDOP 1);

IF @debug = 1
Expand Down
Loading