Replication

Change Snapshot files C to D Drive 13

Advertisements

Change the snapshot location of all publication

You can change the snapshot location without having to perform a re-initialization.

The only caveat to this is you do need to generate a new snapshot. This snapshot will not be applied to your subscribers,

but has to go through the generation process. I recommend doing this at night or weekends

to minimize the impact of the snapshot agent locking tables and contention on the publisher database.

 

Change snapshot location for all publication

 

/*Change path will generate new snapshot BCP file in the new location but this will not apply into subscription*/

 

USE distribution

exec sp_changedistpublisher

@publisher = ‘Node1’,

@property = ‘working_directory’,

@value = ‘\\NODE1\New_Repl_Snap_1’

For more:

https://www.mssqltips.com/sqlservertip/2785/changing-sql-servers-default-snapshot-folder-for-replication/

I’m currently working as a SQL server DBA in one of the top MNC. I’m passionate about SQL Server And I’m specialized in Administration and Performance tuning. I’m an active member of SQL server Central and MSDN forum. I also write articles in SQL server Central. For more Click here

Leave a Reply

Your email address will not be published. Required fields are marked *

11 + = 21