Proposal to avoid "Collection was modified" #7621
Unanswered
potatoqualitee
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Remove commands can cause issues when we pipe because the original collection was modified.
You can see us awkwardly try to handle that in
Get-DbaDatabase
. To avoid all that, I propose the way I'm doing it with ExtendedProperties. Use T-SQL with a command calledGet-ConnectionParent
https://github.com/sqlcollaborative/dbatools/blob/extended/internal/functions/Get-ConnectionParent.ps1Then something like this.
Beta Was this translation helpful? Give feedback.
All reactions