0% found this document useful (0 votes)
7 views

Replication_setup

This document outlines the steps to set up replication in SQL Server, including installing replication tools, configuring distribution and the publisher, and setting up the subscriber. Key steps include creating a snapshot folder, configuring security permissions, and using SQL Server Management Studio to establish publications and subscriptions. It emphasizes the importance of ensuring the server agent is running and monitoring synchronization status after setup.

Uploaded by

sathyapriya3100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Replication_setup

This document outlines the steps to set up replication in SQL Server, including installing replication tools, configuring distribution and the publisher, and setting up the subscriber. Key steps include creating a snapshot folder, configuring security permissions, and using SQL Server Management Studio to establish publications and subscriptions. It emphasizes the importance of ensuring the server agent is running and monitoring synchronization status after setup.

Uploaded by

sathyapriya3100
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 23

Replication setup:

Step 1:

First install replication setup tools in sql server

Step 2:

Create a share for the snapshot folder and assign


permissions
(On the Publisher or another accessible server)

* create a folder for storing snapshots (e.g., C:\Databases).

* Share the Folder:

* Right-click the folder and select Properties.

* Go to the Security tab and click edit .

*And Click add button


*And add username(system name) in enter the objects fields

And click check button if the username be here it automatically


show your username like this SelvamG
And add Ok button
* And Add the click the added username & allow full-control
permission make it checked and click apply and ok button

* finish this process


Step 3:

Configure distribution at the publisher

1. Connect to the publisher in SQL Server Management Studio,


and then expand the server node.

2. Right-click the Replication folder and select Configure


Distribution:

3. And clicked the 1st radio button it show your ServerName


4.And add snapshot folder name in snapshot folder field :

(i.e) step2 created folder name [C:\Databases]


5.And accept the remaining pages default values
6. And finish the process & click close the button

Suppose it gives error start the server agent

Remember Make server agent will be always running

Step 4:

Configure the Publisher

* In SSMS, still connected to the Publisher, expand the


Replication folder.

* Right-click on "Local Publications" and select New


Publication.

The New Publication Wizard will appear:

Select the Database: Choose the database you want to


replicate.

Publication Type: Choose the type of replication: Merge


replication

[ Snapshot Replication: Sends a complete copy of the data


at regular intervals

Transactional Replication: Continuously sends changes from


the Publisher to the Subscriber.

Merge Replication: Allows changes on both the Publisher


and Subscriber, with synchronization.]
* Select which tables, views, or stored procedures (called
Articles) you want to replicate. You can also configure Column
Filters and Row Filters to replicate only specific columns or rows.

Snapshot Agent:

 Choose whether to create the snapshot immediately or at a


scheduled time.

Configure Security:

 Specify which accounts will be used for the Snapshot Agent


and other replication agents (they need to have access to
the necessary resources, such as the network share for the
Snapshot folder).

Finish the Wizard and Generate the Publication.

Img1

Img2
Img3

Img4
Img5
Img6

Img7
Img8

Img9
Img10

Img11
Img12

Img13
Img14
Img15

Step 5:

Configure the Subscriber

1. Go to the Subscriber system and launch SQL Server


Management Studio.

2. Right-click on "Replication" and select New Subscription.

3. The New Subscription Wizard will appear:

o Specify the Publisher: Select the Publisher from the list


or enter the server name manually.

4. Choose the Publication: Choose the publication that you


created on the Publisher.

5. Subscriber:

o Specify the SQL Server instance (the Subscriber) where


the data will be replicated.

o Choose whether to replicate the data to an existing


database or create a new one. We choose the same DB
as subscriber
6. Synchronization Schedule:

o Choose whether to synchronize data continuously, at


scheduled intervals, or manually.

7. Configure Security:

o Set up the replication agents with appropriate security


credentials to access both the Publisher and Subscriber
systems.

o In here connected to subscriber


use subscriber server login username and passwords

8. Complete the Wizard and the Subscription will be created.

Img1

Img2
Img3

Img4
Img5

Img6
Img7

Img8
Img9:
Img10

Img11
Img12

Img13
Img14

And click finish it successfully execute and close it


After complete the publisher and subscriber setup right click to
subscriber

And go to view sychronization status and start the process

after go to launch replication monitor

and see the sysnchroniz log

You might also like