Skip to content

Copy-DbaDbTableData - Add -ScriptingOptionsObject parameter#10317

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-5767-20260405-0840
Apr 7, 2026
Merged

Copy-DbaDbTableData - Add -ScriptingOptionsObject parameter#10317
potatoqualitee merged 1 commit intodevelopmentfrom
claude/issue-5767-20260405-0840

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Adds a -ScriptingOptionsObject parameter to Copy-DbaDbTableData that accepts the output of New-DbaScriptingOption and overrides the internally constructed scripting options when -AutoCreateTable is used.

This gives users full control over which table properties (indexes, constraints, triggers, extended properties, etc.) are included in the generated CREATE TABLE script. Backwards compatible: -UseDefaultFileGroup continues to work as before when -ScriptingOptionsObject is not supplied.

Closes #5767

Generated with Claude Code

…reateTable

Adds a -ScriptingOptionsObject parameter (accepting output of New-DbaScriptingOption)
that overrides the internally constructed scripting options when -AutoCreateTable is used.
This gives users full control over which table properties (indexes, constraints, triggers,
etc.) are included in the generated CREATE TABLE script. Backwards compatible: -UseDefaultFileGroup
continues to work as before when -ScriptingOptionsObject is not supplied.

Closes #5767

(do Copy-DbaDbTableData)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee potatoqualitee merged commit 9899bd2 into development Apr 7, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-5767-20260405-0840 branch April 7, 2026 18:50
@potatoqualitee
Copy link
Copy Markdown
Member

Thank you 🤝

potatoqualitee added a commit that referenced this pull request Apr 10, 2026
… passthrough (review of #10317)

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.

Explore for copy-dbadbtabledata

2 participants