Skip to content

sp_IndexCleanup comes out of beta, Logging to tables, and Making dynamic SQL less annoying#525

Merged
erikdarlingdata merged 281 commits intomainfrom
dev
Mar 19, 2025
Merged

sp_IndexCleanup comes out of beta, Logging to tables, and Making dynamic SQL less annoying#525
erikdarlingdata merged 281 commits intomainfrom
dev

Conversation

@erikdarlingdata
Copy link
Copy Markdown
Owner

@erikdarlingdata erikdarlingdata commented Mar 14, 2025

There's no way to quickly or easily summarize this many changes, but:

sp_HealthParser:

  • added new event collections around errors, memory, and more cpu stuff
  • added the ability to log to tables
  • removed a lot of repetitive code by templating dynamic sql

sp_HumanEventsBlockViewer:

  • Added the ability to log to a table. I know it's somewhat redundant to sp_HumanEvents, but it focuses purely on blocking and uses the final results from here rather than somewhat raw data with a view over it
  • added the ability to read from a table storing the blocked process report in an XML column

sp_PressureDetector

  • Added table logging

sp_QuickieStore:

  • Made the results query far less repetitive, no longer broken up over four sections of annoying to maintain code
  • pushed @include_query_hashes data deeper into the procedure so it's not just based on the results

AND THE BIG ONE!

sp_IndexCleanup

  • No longer in beta
  • Reasonably functional, but still needs testing

Also fixed up some annoying formatting inconsistencies, etc.

@erikdarlingdata erikdarlingdata merged commit b72dd2f into main Mar 19, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sp_HealthParser Pulling system health data sp_HumanEventsBlockViewer Parse the SQL Server blocked process report sp_IndexCleanup Review unused and duplicative indexes sp_PressureDetector For tracking issues with sp_pressure_detector sp_QuickieStore For the loving of Query Store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants