Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
SQL Server 2025 (17.x) Preview
Azure SQL Database
Azure SQL Managed Instance
Warehouse in Microsoft Fabric
SQL database in Microsoft Fabric Preview
Executes a database reseed.
Caution
This system stored procedure is used internally and isn't recommended for direct administrative use. Use the Fabric portal instead. Using this procedure could introduce inconsistency.
This system stored procedure is used for Microsoft Fabric mirrored databases and SQL database in Microsoft Fabric.
Syntax
Transact-SQL syntax conventions
sys.sp_change_feed_reseed_db_init
@is_init_needed tinyint
Arguments
is_init_needed
Internal use only.
Returns
0
(success) or non-zero (failure).
Remarks
A reseed stops the current mirrored database and reinitializes the mirroring. This involves generating a new initial snapshot of the tables configured for mirroring and then incremental changes are replicated. During reseed, the old mirrored database item in Microsoft Fabric is still available but does not receive incremental changes.
Permissions
A user with CONTROL database permissions, db_owner database role membership, or sysadmin server role membership can execute this procedure.
Examples
A. Initiate manual reseed event
As a best practice, test manual reseed for a specific database to understand the impact before turning on the automatic reseed functionality.
USE <Mirrored database name>
GO
EXECUTE sp_change_feed_reseed_db_init @is_init_needed = 1;
Related content
- sys.sp_help_change_feed (Transact-SQL)
- sys.sp_help_change_feed_table (Transact-SQL)
- sys.sp_help_change_feed_table_groups (Transact-SQL)
- sys.sp_help_change_feed_settings (Transact-SQL)
- sys.sp_change_feed_configure_parameters (Transact-SQL)
- sys.dm_change_feed_log_scan_sessions (Transact-SQL)
- sys.dm_change_feed_errors (Transact-SQL)
- What is Mirroring in Fabric?
- Monitor Fabric mirrored database replication
- Explore data in your mirrored database using Microsoft Fabric