Adding Article to Transactional Replication Publisher without Snapshot Re-initialisation

Add article to Transactional Replication without Snapshot Re-initialisation

To add a new article to a publisher efficiently without reinitializing whole replication but running the below scripts/procedure can be done without whole snapshot to be run again. This method only snapshots the new article added to the publisher.

The Steps needs to be followed in same order.

Step No Steps
1 EXEC sp_changepublication @publication = ‘ContosoPub’
@property = N’allow_anonymous’
@value = ‘false’
GO
Change the property of replication.
2 EXEC sp_changepublication @publication = ‘ContosoPub’
@property = N’immediate_sync’
@value = ‘false’
GO
Change the property of replication.
3 add article to publication either by script below or GUI
EXEC sp_addarticle @publication = ‘ContosoPub’
4 add article to subcriber either by script below or GUI
EXEC sp_addsubscription @publication = ‘ContosoPub’
5 run snapshot agent from the GUI by going into Agents Tab in Replication Monitor
6 Notice that you should see just the one article being copied over
7 set to publication options to true by following steps below
8 EXEC sp_changepublication @publication = ‘ContosoPub’
@property = N’allow_anonymous’
@value = ‘true’
GO
Change the property of replication.
9 EXEC sp_changepublication @publication = ‘ContosoPub’
@property = N’immediate_sync’
@value = ‘true’
GO
Change the property of replication.
Vamshi B

View Comments

  • Hey there, You've done an excellent job. I'll certainly digg it and personally recommend to my friends.
    I'm confident they'll be benefited from this website.

  • Thanks for one's marvelous posting! I genuinely enjoyed reading it, you are a great author.I
    will be sure to bookmark your blog and may come back
    later on. I want to encourage you continue your great posts,
    have a nice holiday weekend!

  • Since the admin of this site is working, no question very rapidly it will be famous, due to its quality contents.

  • Hi I am so glad I found your blog, I really found you by mistake, while I was looking on Yahoo for something else, Anyways I am here now and would just like to say kudos for a remarkable post and a all round entertaining blog (I also love the theme/design), I don't have time to go through it all at the minute but I have bookmarked it and also added your RSS feeds, so when I have time I will be back to read a great deal more, Please do keep up the excellent job.

  • Excellent site. Plenty of helpful information here. I am sending it to
    a few friends ans additionally sharing in delicious.
    And certainly, thanks for your sweat!

Recent Posts

sql server detected logical consistency based error

Learn about SQL Server detecting logical consistency based issues and how to resolve them.

5 months ago

sql server error 1222

Learn about SQL Server error 1222 and how to resolve the lock request time out…

5 months ago

Microsoft SQL Server 2022 New Features

Discover the new features of Microsoft SQL Server 2022 and how they compare to previous…

5 months ago

SQL Server Error 1222 lock request time out period exceeded

SQL Server Error 1222 lock request time out period exceeded   Lock request time out…

5 months ago

SQL Server Error : 427, Severity: 20. Could not load the definition for constr

SQL Server Error : 427, Severity: 20. Could not load the definition for constraint ID…

10 months ago

SQL Server Error : 204, Severity: 20. Normalization error in node %ls.

SQL Server Error : 204, Severity: 20. Normalization error in node %ls.

10 months ago

This website uses cookies.