Skip to content

Promote dev to main: Updates_20260601#800

Merged
erikdarlingdata merged 7 commits into
mainfrom
dev
May 28, 2026
Merged

Promote dev to main: Updates_20260601#800
erikdarlingdata merged 7 commits into
mainfrom
dev

Conversation

@erikdarlingdata

Copy link
Copy Markdown
Owner

Summary

Cuts the Updates_20260601 release. Six work PRs merged into dev since Updates_20260501 (plus one direct commit for ProtectSession), all rolled up here for promotion to main.

Procedure changes

Procedure Version What changed
sp_IndexCleanup 2.6 -> 2.7 #778: HAS_DBACCESS preflight to avoid hang on databases the caller can't access
sp_QuickieStore 6.6 -> 6.7 #784: add 'failed' to @execution_type_desc (bundles aborted + exception); #793: fix plan_count/query_count under-count in @find_high_impact
sp_HumanEvents 7.6 -> 7.7 #786: fix view creation when @output_schema_name is not dbo; #787: remove stray AS sqlhandle from blocking-table INSERT
TestBackupPerformance 1.0 -> 1.1 #797: new @encryption_list parameter for backup encryption testing (thanks @bfountain-1976)
ProtectSession 1.0 (new) Per-session blocking watchdog with fingerprint-safe KILL and modification-aware defaults

Also rolled up

Test plan

  • All five procs install and execute cleanly on SQL Server 2016, 2017, 2019, 2022, 2025
  • ProtectSession @help = 1 returns intro + parameters + EXAMPLE CALLS + license result sets
  • TestBackupPerformance fresh install (no prior dbo.backup_performance_results) creates the table with the encryption column
  • TestBackupPerformance v1.0 -> v1.1 upgrade path: existing dbo.backup_performance_results gets the encryption column added via the COL_LENGTH guard before ALTER PROCEDURE compiles
  • sp_HumanEvents blocking section: sort_order recursive CTE still produces the same chain strings after the CAST -> CONVERT swap

🤖 Generated with Claude Code

bfountain-1976 and others added 7 commits May 28, 2026 10:30
- Add @encryption_list parameter (0, 1, or 0,1 for both)
- Pre-compilation ALTER TABLE guard adds encryption column to existing
  backup_performance_results tables before ALTER PROCEDURE compiles,
  preventing Msg 207 invalid column name at compile time
- CREATE TABLE inside proc body updated to include encryption column
  on fresh installs, matching original pattern
- DMK and certificate pre-validation before test loop with descriptive
  RAISERROR messages using @msg variable pattern
- Certificate name resolved once before loop, not per iteration
- encryption threaded through cursor, FETCH, progress messages,
  BACKUP WITH clause (AES_256), and INSERT INTO results table
- encryption column added to all 5 result sets, GROUP BY, PARTITION BY
- Result set 2 now partitions on compression+encryption pairing
- Result set 3 adds encryption UNION ALL block for parameter impact
- Version bumped to 1.1, version_date 20260518
- Tested on SQL Server 2022 CU24, confirmed AES_256 encryption via
  msdb.dbo.backupset encryptor_type and thumbprint verification
…-parameter

Add @encryption_list parameter for backup encryption testing
- sp_IndexCleanup 2.6 -> 2.7
- sp_QuickieStore 6.6 -> 6.7
- sp_HumanEvents 7.6 -> 7.7
- TestBackupPerformance 1.0 -> 1.1 (new @encryption_list feature)
- ProtectSession 1.0 (date only; first public release)
- All @version_date -> 20260601
- ProtectSession: add EXAMPLE CALLS result set to @help = 1 output
  (basic / aggressive / defensive invocations) to match the help UX
  pattern from sp_HumanEvents

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- sp_IndexCleanup: 11 nvarchar(MAX) -> nvarchar(max) (params, locals,
  temp-table columns, dynamic-SQL CONVERTs, xml.value literal)
- sp_QuickieStore: 2 nvarchar(MAX) -> nvarchar(max) on
  @include_databases / @exclude_databases parameters
- sp_HumanEvents: 10 CAST() -> CONVERT() with arg order swapped
  (8 inline string-concat sites for blocking/blocked spid + ecid,
  2 multi-line CASTs in the blocking-chain recursive CTE);
  TRY_CAST sites preserved per style guide (TRY_CAST is allowed)

No behavior change. Pre-existing style debt flagged in the
Updates_20260601 release audit; carved out from the version-bump
PR so the release diff stays tight.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…0601

Style sweep: lowercase nvarchar(max), CAST -> CONVERT
@erikdarlingdata erikdarlingdata merged commit aa76ac4 into main May 28, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants