Skip to content

Remove-DbaDbTableData - Normalize table name via Get-ObjectNameParts#10316

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-9010-20260405-0836
Apr 5, 2026
Merged

Remove-DbaDbTableData - Normalize table name via Get-ObjectNameParts#10316
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-9010-20260405-0836

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Fixes Group 4 of issue #9010: bare dotted table names like Gross.Table.Name were interpreted by SQL Server as 3-part database.schema.table names in the DELETE statement.

Parse -Table via Get-ObjectNameParts and reconstruct a properly-bracketed T-SQL identifier before embedding in the DELETE statement.

Generated with Claude Code

Fixes Group 4 of issue #9010: bare dotted table names like Gross.Table.Name
were interpreted by SQL Server as 3-part database.schema.table names in the
DELETE statement. Bracketed names like [Gross.Table.Name] worked but bare
dotted names failed.

Parse -Table via Get-ObjectNameParts and reconstruct a properly-bracketed
T-SQL identifier (e.g. [schema].[name]) before embedding in the DELETE
statement.

(do Remove-DbaDbTableData)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee
Copy link
Copy Markdown
Member

very nice 💯

@potatoqualitee potatoqualitee merged commit fe639f6 into development Apr 5, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-9010-20260405-0836 branch April 5, 2026 21:57
potatoqualitee added a commit that referenced this pull request Apr 10, 2026
…ew of #10316)

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