I'm looking to automate, replication set up. I have one pushliser and 2 subscribers.Distributor stays on the same instance of publisher.
This steps I follow.
Run the login script against the database.
Right click on replication folder and generate the script.,replace the null with the user password for logins.
break the replication by below query.
restore the database.
run the replication script that is taken in the step 2.
Expand the replication folder->expand the local publications -> there will 2 publications.
Right click on each->view snapshot agent status->check the generate snapshot option ->click ok.
do the same for another publication.
Once snapshot is done, and if the it's fails while bulk copying then re-initiatation all subscriptions.
I like to know how to automate or generate query for below steps
run the replication script that is taken in the step 2.
Expand the replication folder->expand the local publications -> there will 2 publications.
Right click on each->view snapshot agent status->check the generate snapshot now option ->click ok.
Once snapshot is done, and if the it's fails while bulk copying then re-initiatation all subscriptions.
any help is greatly appreciated.
vivekanandhan periasamy