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

Get-DbaProcess - Add information about endpoint and DAC #9304

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

andreasjordan
Copy link
Contributor

Type of Change

  • Bug fix (non-breaking change, fixes # )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (affects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (.\tests\manual.pester.ps1)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

Purpose

I added information about the used endpoint and if it's the DAC (dedicated admin connection) endpoint to support analyzing problems with commands that need a DAC. This way we can easily tell if there is already an open DAC to the instance.

Commands to test

$dacProcess = Get-DbaProcess -SqlInstance SQL01 | ? IsDac
if ($dacProcess) {
    Write-Warning -Message "There is currently an open DAC with SPID $($dacProcess.Spid) from host $($dacProcess.HOST)."
    $dacProcess | Format-List *
}

@potatoqualitee
Copy link
Member

very nice! thank you 🙇🏼

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

2 participants