Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 2.2 KB

File metadata and controls

56 lines (44 loc) · 2.2 KB
title sp_replrestart (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/06/2017
ms.prod sql
ms.prod_service database-engine
ms.component system-stored-procedures
ms.reviewer
ms.suite sql
ms.technology
replication
ms.tgt_pltfrm
ms.topic language-reference
applies_to
SQL Server
f1_keywords
sp_replrestart_TSQL
sp_replrestart
helpviewer_keywords
sp_replrestart
ms.assetid 111b3dbf-92f8-4670-b156-1468c63e4fc1
caps.latest.revision 14
author edmacauley
ms.author edmaca
manager craigg

sp_replrestart (Transact-SQL)

[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]

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.

Topic link icon 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 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)