Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
sp_copymergesnapshot (Transact-SQL)
Collapse the table of content
Expand the table of content

sp_copymergesnapshot (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).

Copies the snapshot folder of the specified publication to the folder listed in the @destination_folder. This stored procedure is executed at the Publisher on the publication database.

Topic link icon Transact-SQL Syntax Conventions

sp_copymergesnapshot [ @publication = ] 'publication', [ @destination_folder = ] 'destination_folder'

[ @publication=] 'publication'

Is the name of the publication whose snapshot contents are to be copied. publication is sysname, with no default.

[ @destination_folder=] 'destination_folder'

Is the name of the folder where the contents of the publication snapshot is to be copied. destination_folderis nvarchar(255), with no default. The destination_folder can be an alternate location such as on another server, on a network drive, or on removable media (such as CD-ROMs or removable disks).

0 (success) or 1 (failure)

sp_copymergesnapshot is used in merge replication. Subscribers running Microsoft SQL Server version 7.0 and earlier cannot use the alternate snapshot location.

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

Community Additions

ADD
Show:
© 2015 Microsoft