Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

How to create the batch file for the Snapshot replication on the publication and subscription side .

$
0
0

Hi there,

I found the batch script for merge replication as below to create the initial snapshot script and also the batch file to activate subscription. But however i didn't get any for Snapshot replication.

Could you please help?

Following is what I got for merge replication.

The following command-line arguments start the Snapshot Agent to generate the snapshot for a merge publication.

REM -- Declare variables
SET Publisher=%InstanceName%
SET PublicationDB=AdventureWorks2012
SET Publication=AdvWorksSalesOrdersMerge

REM --Start the Snapshot Agent to generate the snapshot for AdvWorksSalesOrdersMerge.
"C:\Program Files\Microsoft SQL Server\120\COM\SNAPSHOT.EXE" -Publication %Publication%
-Publisher %Publisher% -Distributor %Publisher% -PublisherDB %PublicationDB%
-ReplicationType 2 -OutputVerboseLevel 1 -DistributorSecurityMode 1  

Scenario: Publication Database is on MSSQL 2012 Standard 

Subscription Databse is on SQL EXpress 2012


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>