Share via

SQL Transactional Replication - Renitialzation processing wiht Snapshot Agent Job

Mark Gordon 926 Reputation points
2020-12-29T15:45:01.667+00:00

Fellow SQLers.
I am trying to understand exactly what occurs inside sql when replication initialization/reinitialization of a subscription is doing within the snapshot agent routine.

I already understand what files it creates and why. But I do not understand if the processing occurring by the snapshot agent is loading the subscriber db directly or is it pumping it up to the distributor and the synchronizer agent job is doing the loading.

Appreciate any clarification.

Thx
MG

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories


Answer accepted by question author

CathyJi-MSFT 22,431 Reputation points Microsoft External Staff
2020-12-30T03:18:14.433+00:00

Hi @Mark Gordon ,

> But I do not understand if the processing occurring by the snapshot agent is loading the subscriber db directly or is it pumping it up to the distributor and the synchronizer agent job is doing the loading.

The initial dataset is typically a snapshot that is created by the Snapshot Agent and distributed and applied by the Distribution Agent. The Snapshot Agent prepares snapshot files containing schema and data of published tables and database objects, stores the files in the snapshot folder. The Distribution Agent copies the initial snapshot files from the snapshot folder to Subscribers.

Suggest you read MS document How Transactional Replication Works to get more information.

Best regards,
Cathy


If the response is helpful, please click "Accept Answer" and upvote it, thank you.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Tom Phillips 17,786 Reputation points
    2020-12-29T16:36:36.573+00:00

    It does not push the data to the distribution database.

    I suggest you look at this:
    https://learn.microsoft.com/en-us/sql/relational-databases/replication/snapshot-replication?view=sql-server-ver15

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.