Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.45 KB

File metadata and controls

53 lines (40 loc) · 2.45 KB
title sp_resetsnapshotdeliveryprogress (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 03/03/2017
ms.prod sql
ms.prod_service database-engine
ms.reviewer
ms.technology replication
ms.topic language-reference
f1_keywords
sp_resetsnapshotdeliveryprogress
sp_resetsnapshotdeliveryprogress_TSQL
helpviewer_keywords
sp_resetsnapshotdeliveryprogress
ms.assetid 5df7d86b-d343-4d9b-88b1-74429ed092e6
author stevestein
ms.author sstein

sp_resetsnapshotdeliveryprogress (Transact-SQL)

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

Resets the snapshot delivery process for a pull subscription so that snapshot delivery can be restarted. Executed at the Subscriber on the subscription database.

Topic link icon Transact-SQL Syntax Conventions

Syntax

  
sp_resetsnapshotdeliveryprogress [ [ @verbose_level = ] verbose_level ]  
    [ , [ @drop_table = ] 'drop_table' ]  

Arguments

[ @verbose_level = ] verbose_level Specifies the amount of information returned. verbose_levelis int, with a default of 1. A value of 1 means that an error is returned if the necessary locks cannot be obtained on the MSsnapshotdeliveryprogress table, and 0 means that no error is returned.

[ @drop_table = ] 'drop_table' Is whether to drop or truncate the table containing information on the progress of the snapshot.drop_table is nvarchar(5), with a default of FALSE. false means that the table is truncated, and true means the table is dropped.

Return Code Values

0 (success) or 1 (failure)

Remarks

sp_resetsnapshotdeliveryprogress removes all rows in the MSsnapshotdeliveryprogress table. This effectively removes all metadata left behind at the subscription database by any previous progress made in the snapshot delivery processes.

Permissions

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

See Also

Replication Stored Procedures (Transact-SQL)