Skip to content

Set-DbaDbCompression, Invoke-DbaBalanceDataFiles, Invoke-DbaDbPiiScan - Normalize table names via Get-ObjectNameParts - #10312

Merged
potatoqualitee merged 1 commit into
developmentfrom
claude/issue-9010-20260405-0816
Apr 5, 2026
Merged

potatoqualitee merged 1 commit into
developmentfrom
claude/issue-9010-20260405-0816

Conversation

@andreasjordan

Copy link
Copy Markdown
Collaborator

Fixes Group 1 of issue #9010: SMO name comparisons failed when users passed bracketed table names like [Gross.Table.Name]. SMO's .Name property never includes brackets, so the filter silently returned nothing.

Normalize $Table and $ExcludeTable values via Get-ObjectNameParts before SMO name comparisons in:

  • Set-DbaDbCompression
  • Invoke-DbaBalanceDataFiles
  • Invoke-DbaDbPiiScan

Generated with Claude Code

… - Normalize table names via Get-ObjectNameParts before SMO comparison

Strip brackets from -Table (and -ExcludeTable) values before comparing
against SMO .Name properties, which never include brackets. Fixes
silent failures when users pass bracketed names like [Gross.Table.Name].

Closes #9010

(do *Compression*, *Balance*, *PiiScan*)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee
potatoqualitee merged commit 392fc9d into development Apr 5, 2026
15 checks passed
@potatoqualitee
potatoqualitee deleted the claude/issue-9010-20260405-0816 branch April 5, 2026 18:58
potatoqualitee added a commit that referenced this pull request Apr 10, 2026
…10312)

Co-authored-by: Copilot <223556219+Copilot@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.

2 participants