SQL Flow Field Guide

sys.sp_flush_CT_internal_table_on_demand

Check SQL Server version support in the source

Manually clean the side table (changetrackingobjectid) for a table in a database for which change tracking is enabled.

What changes

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

Syntax at a glance

sys.sp_flush_CT_internal_table_on_demand
    [ [ @TableToClean = ] N'TableToClean' ]
    [ , [ @DeletedRowCount = ] DeletedRowCount OUTPUT ]
    [ , [ @DeleteBatchSize = ] DeleteBatchSize ]
    [ , [ @SysCommitTabRowCount = ] SysCommitTabRowCount ]
[ ; ]

Work example

Manually clean the side table (changetrackingobjectid) for a table in a database for which change tracking is enabled.

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.