SQL Flow Field Guide

sys.sp_add_object_to_event_stream_group

Catalog support for SQL Server 2025 (17.x)

sys.spaddobjecttoeventstreamgroup adds an object to a stream group for the change event streaming feature.

What changes

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

Syntax at a glance

sys.sp_add_object_to_event_stream_group
    [ @stream_group_name = ] N'stream_group_name'
    , [ @object_name = ] N'schema_name_dot_object_name'
    [ , [ @include_all_columns = ] include_all_columns ]
    [ , [ @include_old_values = ] include_old_values ]
    [ , [ @include_old_lob_values = ] include_old_lob_values ]
[ ; ]

Work example

sys.spaddobjecttoeventstreamgroup adds an object to a stream group for the change event streaming feature.

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.