Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Permalink
live
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs
sp_replrestart (Transact-SQL)
sp_replrestart (Transact-SQL)
markingmyname
maghan
03/06/2017
sql
replication
reference
sp_replrestart_TSQL
sp_replrestart
sp_replrestart
TSQL

sp_replrestart (Transact-SQL)

[!INCLUDE SQL Server SQL MI]

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]
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.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

  
sp_replrestart  

Return Code Values

0 (success) or 1 (failure)

Remarks

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

Permissions

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

See Also

Replication Stored Procedures (Transact-SQL)