Background
We have a tool that can run against any version of sql server.
We want to add the ability for that tool to turn on CDC and configure capturing of some tables, without the user writing any SQL.
I know I can query if CDC is enabled from sys.databases. But that's after the fact.
Question
Is there any way to determine if the CDC feature can be enabled on this database? I expected some kind of sys.server_capabilities table, or sys.server_features table. It may be possible via interpreting SERVERPROPERTY('EngineEdition'), but that feels like a facepalm.