Repository navigation
Docs: README example fixes, folder index, Azure note for sp_IndexCleanup, installers - #956
Merged
Merged
Conversation
…nup, installers - sp_HumanEvents README: the BlockViewer examples now name the real default session (keeper_HumanEvents_blocking) and point the custom-name example at the Setup session. - sp_QuickieCache README and root README: relabel the @start_date example, which is not "today". - sp_IndexCleanup: README, root README and @help now say @get_all_databases is not supported on Azure SQL Database (text-only, no version change). - Root README: add an "Other scripts" index for six folders that had no entry. - LICENSE.md: copyright years 2019-2026. - sp_HumanEvents and sp_PressureDetector: document the sqlcmd installers; fix their usage text to the -v TargetDB="name" form that both sqlcmd flavors accept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01M98owc3zzZNEpij3p49Bbe
erikdarlingdata
marked this pull request as ready for review
November 13, 2026 08:40
|
Claude finished @erikdarlingdata's task in 12s —— View job Review of PR #956The changes look good. I found nothing blocking.
I only read the diff. I did not re-run the installers or the harness, so I'm relying on the results reported in the PR description. One small, optional point: the README sqlcmd examples use |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs and text-only fixes from an admin audit of the repo. No procedure logic changes and no version or
@version_datechanges.Install-All/DarlingData.sqlis untouched.1. sp_HumanEvents README: BlockViewer example named the wrong default
What went wrong. The Setup section creates a session called
blocked_process_report. The usage example below it said "default session name", but sp_HumanEventsBlockViewer defaults@session_nametokeeper_HumanEvents_blocking. A reader who ran Setup and then the "basic" example got no data.Fix. The first example now names the real default and says when it exists (sp_HumanEvents with
@event_type = 'blocking'and@keep_alive = 1creates it). The second example is labeled as the way to read the Setup session.Re-check. Default confirmed at
sp_HumanEventsBlockViewer.sql:65; the keeper name is built atsp_HumanEvents.sql:758-766.2. sp_QuickieCache README and root README: "plans created today"
What went wrong. The example passed a fixed
@start_date = '20260403'but was labeled "Only plans created today".Fix. Relabeled in both files to "Only plans created or cached on or after a date", which matches the parameter row.
3. sp_IndexCleanup: Azure SQL Database note for @get_all_databases
What went wrong. The procedure raises error 16 for
@get_all_databases = 1on Azure SQL Database (sp_IndexCleanup.sql:1465-1471: "@get_all_databases is not supported on Azure SQL Database. Please specify a @database_name instead."). No doc or@helpsaid so.Fix. Added to the
sp_IndexCleanup/README.mdparameter row and notes list, the root README parameter row, and the@helpdescription text. The@helpedit is a string literal only.Proof. Ran the sp_IndexCleanup harness once on SQL2025 with the edited proc installed in master:
Results: 58 passed, 0 failed, 58 total. Then reinstalled theorigin/devcopy into master (confirmed by checking the new help text is gone). Note:run_tests.pyprintsResults:rather thanTotal:, so the first grep pass matched nothing and I ran it a second time to read the result. The harness leaves sixtest_ic_idk_*tables in StackOverflow2013; I dropped them.4. Root README folder index missing six folders
What went wrong. Alerts, Create Long IN List, Dynamic SQL Logging, Inline Financial Functions, SQL Debug Example and Stack Column Store Database had no entry. None of them has a README, so they did not fit under "Utility scripts" ("These folders each have their own README").
Fix. New "Other scripts" section with one line each, written from reading each folder's files. Stack Column Store Database is described plainly as a personal demo build script with hard-coded file paths (
D:\SQL2017\StackCS\...) that is not meant to run as is.5. LICENSE.md year
Copyright (c) 2021is nowCopyright (c) 2019-2026. Nothing else changed.6. Installers: documented
sp_HumanEvents/install-human-events.sqlandsp_PressureDetector/install-pressure-detector.sqlare sqlcmd-mode installers that no README mentioned.Checked first. Ran each from its own folder on SQL2025 into scratch database
zz_fix_g_1withsqlcmd -S SQL2025 -U sa -C -i <installer> -v TargetDB="zz_fix_g_1". Both reported success and the database heldsp_HumanEvents,sp_HumanEventsBlockViewerandsp_PressureDetector. Dropped the database afterward.One defect found and fixed. Both files tell the user to pass
-v TargetDB = "name"(spaces around the equals sign) in the header comment and in the "must specify the target database" message. go-sqlcmd rejects that form (TargetDB must be formatted as key=value). The messages now show-v TargetDB="name", which I ran with go-sqlcmd and which legacy sqlcmd also accepts. The "-V" in the message is now "-v", and the placeholder is now<database_name>instead of{server-name}. Text only, three lines per file. Re-ran both installers after the edit, plus the empty-TargetDB path (prints the corrected usage and aborts).Docs. Added an "Install with sqlcmd" section with the command line to
sp_HumanEvents/README.md(also in its table of contents) andsp_PressureDetector/README.md.If Erik would rather delete the installers, drop section 6 and the two .sql files from this PR; nothing else depends on them.
Plain-English checker
Ran
check.pyon README.md, sp_HumanEvents/README.md, sp_IndexCleanup/README.md, sp_QuickieCache/README.md and sp_PressureDetector/README.md. No hits on any line I changed or added. Existing hits elsewhere in those files are left alone.Dropped
Nothing. All six findings still held at
origin/devb7fba0f.Considered, not added
CI at the time of writing: "Detect SQL changes" pending. Not waited on.
🤖 Generated with Claude Code
https://claude.ai/code/session_01M98owc3zzZNEpij3p49Bbe