sp_replrestart (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_replrestart (Transact-SQL)

Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Used by transactional replication during backup and restore so that the replicated data at the Distributor is synchronized with data at the Publisher. This stored procedure is executed at the Publisher on the publication database.

Important note Important

sp_replrestart is an internal replication stored procedure and should only be used when restoring a database published in a transactional replication topology as directed in the topic Strategies for Backing Up and Restoring Snapshot and Transactional Replication.

Topic link icon Transact-SQL Syntax Conventions


0 (success) or 1 (failure)

sp_replrestart is used when the highest log sequence number (LSN) value at the Distributor does match the highest LSN value at the Publisher.

Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_replrestart.

Community Additions

© 2016 Microsoft