-
-
Notifications
You must be signed in to change notification settings - Fork 834
Added IsCdCEnabled to Get-DbaDatabase #9670
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
base: development
Are you sure you want to change the base?
Conversation
ok, now the code is right but .... are we sure the column is there for every version ? |
I thought the automated testing hit some really old versions? |
My old copy of SQL Server MVP Deep Dives Volume 1 agrees that it was new in 2008. |
We already have an |
@andreasjordan Aren't Change Tracking and CDC two different things? |
@ReeceGoding yes, you are right. I was on the wrong track... |
Maybe we should wrap |
@niphlod @andreasjordan Better? |
The code looks save now, thanks fo rthe change. But we need to talk about the values. Should the property IsCdcEnabled be of type boolean? I can not test this at the moment, but your screenshot looks like it works on current versions, so the "bit" column type is converted to a boolean. But what about the old versions. The "0" in your query is likely just a number. Or should the query return $null as the feature is not availabe? |
I'm afraid that I don't know and also lack any way to find out. Suggestions? |
No attempt made to touch the Azure stuff.
Type of Change
Invoke-ManualPester
)Purpose
See #9669.
Approach
I did the first thing that came to mind and it immediately worked. I expected this to be much harder!
Commands to test
Get-DbaDatabase
Screenshots