I set up a new server to host some database publications.
On the same server I set the distributor db.
All goes on well, then while running a snapshot of a publication on transactional replication:
get an error that the folder where the publication is set to run the snap does not have the privileges
I check where the snapshot is set to be generated within the publication
it is not where it should be
I cannot connect to the server, either to change the publication settings nor to grant the relevant permissions
question?
can I change the publication on that server from my local server and re-run the snap?
Best Answer
From my local ssms, I connect to the server where the publications are and run the following command to change the publication and set the snapshot folder to a different location:
the script below also marks that subscription for reinitialization and starts the snapshot agent.