SQL Flow Field Guide

sys.sp_cdc_generate_wrapper_function

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

Generates scripts to create wrapper functions for the change data capture query functions that are available in SQL Server.

What changes

Input
Not stated in the Microsoft summary.
Output or change
Not stated in the Microsoft summary.

Syntax at a glance

sys.sp_cdc_generate_wrapper_function
    [ [ @capture_instance = ] N'capture_instance' ]
    [ , [ @closed_high_end_point = ] closed_high_end_point ]
    [ , [ @column_list = ] N'column_list' ]
    [ , [ @update_flag_list = ] N'update_flag_list' ]
[ ; ]

Work example

Generates scripts to create wrapper functions for the change data capture query functions that are available in SQL Server.

Read the syntax and examples. Explain each argument and its effect before writing a call.

Check your work Which inputs are required, and what result or effect does the page document?

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