Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
Azure SQL Managed Instance
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.
Transact-SQL syntax conventions
sp_copymergesnapshot
[ @publication = ] N'publication'
, [ @destination_folder = ] N'destination_folder'
[ ; ]
The name of the publication whose snapshot contents are to be copied. @publication is sysname, with no default.
The name of the folder where the contents of the publication snapshot is to be copied. @destination_folder is 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.
Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_copymergesnapshot
.
Events
Mar 31, 11 PM - Apr 2, 11 PM
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register today