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
Returns the complete path for the latest snapshot generated for a merge publication. This stored procedure is executed at the Publisher on the publication database.
Transact-SQL syntax conventions
sp_browsemergesnapshotfolder [ @publication = ] N'publication'
[ ; ]
The name of the publication. @publication is sysname, with no default.
0
(success) or 1
(failure).
Column name | Data type | Description |
---|---|---|
snapshot_folder |
nvarchar(2000) | Full path to the snapshot directory. |
sp_browsemergesnapshotfolder
is used in merge replication.
If the publication is set up to generate snapshot files in both the Publisher working directory and Publisher snapshot folder, the result set contains two rows: the first row contains the publication snapshot folder, and the second row contains the publisher working directory.
sp_browsemergesnapshotfolder
is useful for determining the directory where the merge snapshot files are generated. This folder/path and its contents can then be copied to removable media, and the snapshot used to synchronize a subscription from an alternate snapshot location.
Only members of the sysadmin fixed server role or db_owner fixed database role can execute sp_browsemergesnapshotfolder
.
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