SQL Flow Field Guide

sys.sp_xtp_flush_temporal_history

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

Invokes the data flush task to move all committed rows from in-memory staging table to the disk-based history table.

What changes

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

Syntax at a glance

sys.sp_xtp_flush_temporal_history
    [ @schema_name = ] N'schema_name'
    , [ @object_name = ] N'object_name'
[ ; ]

Work example

Invokes the data flush task to move all committed rows from in-memory staging table to the disk-based history table.

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.