New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get-DbaConnectedInstance / Disconnect-DbaInstance #7650
Conversation
What about connections to the same instance with different Credentials or with different parameters? |
we can make the "key" using psboundparameters 🤔 |
but then it may become unrecognizable |
Maybe an array of connection objects as the value. |
ahh! without an index! |
boo, can't detect dupes |
ahh connectionstring as an index! |
Interesting! I didn't realize that admin wasn't parsable, I'll handle it |
We would need a change in the dll for that. Was planned here: #6831 (comment) |
Problem 1: Disconnect should also remove the entry from the hash. |
|
About 2.: What about an array as the value to the key connectionstring: Instead of
You could also take the server name as key then:
|
Mmm check it out?
|
Yes, looks good! |
Booom! Will merge once tests pass. |
Proof of concept so far -- totally works