Skip to content
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

Connect-DbaInstance - Connect DAC to test connection as soon as possible #9305

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

andreasjordan
Copy link
Contributor

Type of Change

Purpose

All other commands rely on Connect-DbaInstance returning an open connection. So this has to be true for DAC as well. So we have to open the DAC inside of Connect-DbaInstance.

Commands to test

# This should fail on the second line:
$dac1 = Connect-DbaInstance -SqlInstance SQL01 -DedicatedAdminConnection
$dac2 = Connect-DbaInstance -SqlInstance SQL01 -DedicatedAdminConnection

See #9253 for more details.

@potatoqualitee
Copy link
Member

hoepful 🤞🏼

@potatoqualitee potatoqualitee merged commit 4d47bd6 into development Apr 11, 2024
12 checks passed
@potatoqualitee potatoqualitee deleted the ConnectDbaInstance_connect_dac branch April 11, 2024 05:25
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.

None yet

2 participants