Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Replication (2008)
 Publication Database is not creating new articles

Author  Topic 

Superdoc
Starting Member

2 Posts

Posted - 2012-04-21 : 12:47:16
Hi,

i'm new to the replication, i've done a transactional replication on a test environment, publication, distribution and subscription all on same instance, what i noticed was that new table added wasn't getting added as an article in the distribution, but if i changed or added column/data to existing article it worked, is this a limitation that new tables created in publication doesn't get created in distribution or if i haven't properly understood. Thanks

Regards,

Superdoc
Starting Member

2 Posts

Posted - 2012-04-22 : 09:23:07
i found it myself, whoever is looking for answer for same is this.

it also create article that is ready for immediate sync for only that one name and not necessary to take snapshot of entire database.

sp_addarticle 'publication1' ,@article='table1',@source_object='table1',@destination_table='table1',
@force_invalidate_snapshot=1

Regards,
Go to Top of Page

russell
Pyro-ma-ni-yak

5072 Posts

Posted - 2012-04-24 : 10:12:22
http://blogs.msdn.com/b/chrissk/archive/2009/07/27/how-replication-setting-immediate-sync-may-cause-transactional-replication-distribution-database-growth.aspx


http://blogs.msdn.com/b/repltalk/archive/2010/04/22/what-happens-if-i-select-create-a-snapshot-immediately-in-the-publication-wizard.aspx


http://blogs.msdn.com/b/repltalk/archive/2010/03/24/what-immediate-sync-means-in-transactional-replication.aspx

http://blogs.msdn.com/b/mangeshd/archive/2008/11/07/behavior-observed-due-to-immediate-sync-parameter-of-transaction-replication-when-adding-new-article-to-an-existing-publication.aspx

http://www.replicationanswers.com/TransactionalOptimisation.asp
Go to Top of Page
   

- Advertisement -