Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Add an article to an existing Publication Expand / Collapse
Author
Message
Posted Tuesday, October 8, 2013 10:16 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Monday, February 3, 2014 8:10 AM
Points: 4, Visits: 66
Hi ,

I have a Transactional Replication in our environment, I want to add a table to a publication Db.How to add a table to a publication db without re initializing the whole publication.

When i tried to add i received following message.


You have changed one or more properties that require all subscriptions to be reinitialized. Saving these changes marks each subscription that supports automatic reinitialization to be reinitialized from a snapshot the next time its Distribution Agent runs. You must run the Snapshot Agent to generate the snapshot.

Please let me know how to add an article without re initialization of the publication.


Regards

Shamanth
Post #1502909
Posted Wednesday, October 9, 2013 5:50 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, July 21, 2014 9:32 AM
Points: 299, Visits: 559
You can't, as the message explains the publication which includes all articles has to be re-initialised which in turn will generally mean creating a new snapshot depending on how old the snapshot it.

Your best bet would be add the new article as part of a new publication, that way the original publication is unaffected and you have less data to snap from the publisher to the subscriber.


MCITP SQL 2005, MCSA SQL 2012
Post #1503034
Posted Wednesday, October 9, 2013 10:53 AM


SSChampion

SSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampionSSChampion

Group: General Forum Members
Last Login: Yesterday @ 9:07 AM
Points: 11,157, Visits: 12,899
According to BOL:

2.After adding an article to a publication, you must create a new snapshot for the publication (and all partitions if it is a merge publication with parameterized filters). The Distribution Agent or Merge Agent then copies the schema and data for the new article to the Subscriber (it does not reinitialize the entire publication).




Jack Corbett

Applications Developer

Don't let the good be the enemy of the best. -- Paul Fleming

Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
How to Post Performance Problems
Crosstabs and Pivots or How to turn rows into columns Part 1
Crosstabs and Pivots or How to turn rows into columns Part 2
Post #1503207
Posted Thursday, October 10, 2013 6:33 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Thursday, July 17, 2014 3:31 AM
Points: 49, Visits: 319
it is possible, you have to change two values.

please be so kind and watch this thread:

http://www.sqlservercentral.com/Forums/Topic1482214-391-1.aspx

at the end, there is an interesting link.

with this, you are also able to add a new subscriber to an existing publication without an snapshot for the other "old" subscriber.

Post #1503515
Posted Thursday, October 10, 2013 6:38 AM
SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Monday, July 21, 2014 9:32 AM
Points: 299, Visits: 559
Adding a new subscriber is a different situation. You would need to generate a new snapshot but you do not need to reinitialise the exiting subscribers as they will not be changing. You will need to initialise the new subscriber however.

MCITP SQL 2005, MCSA SQL 2012
Post #1503521
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse