Import-DbaCsv - Preserve user-provided SQL connections#10063
Merged
potatoqualitee merged 3 commits intodevelopmentfrom Dec 25, 2025
Merged
Import-DbaCsv - Preserve user-provided SQL connections#10063potatoqualitee merged 3 commits intodevelopmentfrom
potatoqualitee merged 3 commits intodevelopmentfrom
Conversation
When users pass an already-open connection (Server SMO object), the cmdlet now preserves it instead of unconditionally closing it at the end of execution. This enables connection reuse scenarios where users want to perform multiple operations on the same connection. Follows the same pattern used by Invoke-DbaQuery.ps1, detecting if the user passed a Server SMO object and only closing connections the cmdlet created itself. Fixes #10062 (do Import-DbaCsv) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
Bump dbatools.library version in dbatools-library-version.json to 2025.12.25-preview-sqlservermodule-20251225191938 for use in CI/CD and development.
Bumped the dbatools.library version in both CI/CD configuration and module manifest to 2025.12.25 for consistency and to use the latest release. (do Import-DbaCsv)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When users pass an already-open connection (Server SMO object), the cmdlet now preserves it instead of unconditionally closing it at the end of execution. This enables connection reuse scenarios where users want to perform multiple operations on the same connection.
Follows the same pattern used by Invoke-DbaQuery.ps1, detecting if the user passed a Server SMO object and only closing connections the cmdlet created itself.
Fixes #10062
(do Import-DbaCsv)
🤖 Generated with Claude Code