SQL Flow Field Guide

sys.sp_cdc_get_ddl_history

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

Returns the data definition language (DDL) change history associated with the specified capture instance since CDC was enabled for that instance.

What changes

Input
Returns the data definition language (DDL) change history associated with the specified capture instance since CDC was enabled for that instance.
Output or change
No write is stated in the Microsoft summary.

Syntax at a glance

sys.sp_cdc_get_ddl_history [ @capture_instance = ] N'capture_instance'
[ ; ]

Work example

Returns the data definition language (DDL) change history associated with the specified capture instance since CDC was enabled for that instance.

In a disposable database, use it only with an object you created. Record the result columns and what each one means.

Check your work What result does it return, and which argument narrows that result?

Open Microsoft Learn for full syntax, permissions, and details for your version.