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

sp_startpublication_snapshot (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 to start the Snapshot Agent job that generates the initial snapshot for a publication. This stored procedure is executed at the Publisher on the publication database.

Topic link icon Transact-SQL Syntax Conventions

sp_startpublication_snapshot [ @publication = ] 'publication' 
    [ , [ @publisher = ] 'publisher' ]

[ @publication= ] 'publication'

Is the name of the publication. publication is sysname, with no default.

[ @publisher= ] 'publisher'

Is the name of a non-SQL Server Publisher. publisher is sysname, with a default value of NULL. You should not specify this parameter for a SQL Server Publisher.

0 (success) or 1 (failure)

sp_startpublication_snapshot is used with all types of replication.

For a non-SQL Server Publisher, this stored procedure is executed at the Distributor on the distribution database.

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

Community Additions

© 2016 Microsoft