Skip to content

Install-DbaWhoIsActive - Select version-appropriate SQL file based on server version#10341

Draft
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-10339-20260410-0757
Draft

Install-DbaWhoIsActive - Select version-appropriate SQL file based on server version#10341
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-10339-20260410-0757

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Implements version-based SQL file selection for sp_WhoIsActive to support the new multi-script release structure.

The SQL file selection is moved from the begin block to the process block so each target server gets the correct script version based on its VersionMajor property. Subfolder matching parses year ranges from directory names (e.g. "2005-2008") and checks whether the server's release year falls within that range.

Closes #10339

Generated with Claude Code

… server version

sp_WhoIsActive now ships version-specific scripts in subfolders named
with year ranges (e.g. 2005-2008, 2012-2019). The root file targets
the latest SQL Server version.

The SQL file selection is moved from the begin block to the process
block so each target server gets the correct script version based on
its VersionMajor property. Subfolder matching parses year ranges
from directory names (e.g. "2005-2008") and checks whether the
server's release year falls within that range.

Closes #10339

(do Install-DbaWhoIsActive)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
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.

Install-DbaWhoIsActive - sp_whoisactive versioning change

1 participant