Export-DbaCredential - Add IF NOT EXISTS guard to exported SQL scripts#10295
Export-DbaCredential - Add IF NOT EXISTS guard to exported SQL scripts#10295andreasjordan wants to merge 1 commit intodevelopmentfrom
Conversation
Wraps each CREATE CREDENTIAL statement with an IF NOT EXISTS check against sys.credentials so that exported scripts are idempotent and only create missing credentials during migrations or DR script replays. Closes #8618 (do Export-DbaCredential) Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
|
@claude please read the other |
|
Claude finished @andreasjordan's task in 1m 26s —— View job Analysis: IF NOT EXISTS Pattern Across Export-Dba* Commands
Here's the status of each
Key Finding: Export-DbaDbRoleThis is the clearest gap. While $ScriptingOptionsObject.IncludeIfNotExists = $falseChanging this to Secondary Finding: Export-DbaLinkedServerThis command uses SMO's |
Wraps each CREATE CREDENTIAL statement with an IF NOT EXISTS check against sys.credentials so that exported scripts are idempotent and only create missing credentials during migrations or DR script replays.
Closes #8618
Generated with Claude Code