Skip to content

Invoke-DbaQuery - Add -QuotedIdentifier parameter for filtered index compatibility#10066

Merged
potatoqualitee merged 3 commits intodevelopmentfrom
quoted
Dec 27, 2025
Merged

Invoke-DbaQuery - Add -QuotedIdentifier parameter for filtered index compatibility#10066
potatoqualitee merged 3 commits intodevelopmentfrom
quoted

Conversation

@potatoqualitee
Copy link
Copy Markdown
Member

When using Invoke-DbaQuery to INSERT/UPDATE/DELETE on tables with filtered indexes, operations can silently fail because SMO connections may have QUOTED_IDENTIFIER set to OFF. This parameter prepends SET QUOTED_IDENTIFIER ON to each batch, matching SSMS behavior and ensuring compatibility with filtered indexes, indexed views, computed columns, and XML indexes.

potatoqualitee and others added 3 commits December 27, 2025 01:02
…compatibility

When using Invoke-DbaQuery to INSERT/UPDATE/DELETE on tables with filtered indexes,
operations can silently fail because SMO connections may have QUOTED_IDENTIFIER set
to OFF. This parameter prepends SET QUOTED_IDENTIFIER ON to each batch, matching
SSMS behavior and ensuring compatibility with filtered indexes, indexed views,
computed columns, and XML indexes.

(do Invoke-DbaQuery)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Temp tables are connection-scoped and not visible across separate Invoke-DbaQuery
calls. Changed test to use a regular table in tempdb with unique name instead.

(do Invoke-DbaQuery)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
(do Invoke-DbaQuery)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@potatoqualitee potatoqualitee merged commit 67bc3b6 into development Dec 27, 2025
14 checks passed
@potatoqualitee potatoqualitee deleted the quoted branch December 27, 2025 08:52
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.

1 participant