dbatools icon indicating copy to clipboard operation
dbatools copied to clipboard

Show if CDC is enabled in Get-DbaDatabase

Open ReeceGoding opened this issue 8 months ago • 0 comments

Summarize Functionality

I recently used Get-DbaDatabase | Select * and was surprised to see absolutely nothing about CDC. I could write the sys.databases query to find if CDC is enabled, but I was surprised to not see it in what I first tried. Dbatools seems to have no native way to check the status of CDC.

As discussed a while ago.

Is there a command that is similiar or close to what you are looking for?

Yes

Technical Details

Just add another field to Get-DbaDatabase, not necessarily in the default view.

ReeceGoding avatar May 16 '25 16:05 ReeceGoding