the tables (the ones you have selected to publish) when it generates the initial snapshot files?
I have some tables (articles) that have 2M+ rows and I don't want this snapshot process
to cause any performance issues in production. If the tables are being locked for
the duration of the initial snapshot process, then I want to do this off peak hours.
Can someone clairfy this?
Thanks!
Yes. A schema M lock will be held, so that the data does not change during the snapshot process. While the bcp operation is occurring locks will also be held.
Concurrent snapshots will result in less locking and if you are using the Enterprise Edition of SQL Server and use the sync_method of database snapshot there will be no locking.
Here is an example:
sp_addpublication @publication=MyPublication, @Status='Active', @Sync_method='Database Snapshot'
Hi Sidney,
This method of specifying @Sync_method parameter cannot be done from SQL Server Management Studio GUI. In other words, you need to configure the publication using T-SQL.
You can follow the instructions in the below articles to set up transactional replication with T-SQL.
Setting up transactional replication using T-SQL
sp_addpublication (Transact-SQL)
Thanks,
Lydia Zhang