Groups | Blog | Home
all groups > sql server replication > june 2006 >

sql server replication : Adding an article to Publication



Sal
6/26/2006 12:11:02 PM
Hi:

I want to add an article to existing publication using Transactional
Replication. If I run the snapshot agent, will it run just for that article
or for all the articles in the publication. I only want to run for article
because other articles are huge and it will create performance problems.

I have done this before but I don't exactly remember the details. Please
let me know.

Thanks a lot.

Sal
6/26/2006 12:33:01 PM
Thanks a lot

[quoted text, click to view]
Hilary Cotter
6/26/2006 3:22:35 PM
It will create a snapshot for just that article and related metadata and
system objects.

Make sure you do this through QA.

--
Hilary Cotter
Director of Text Mining and Database Strategy
RelevantNOISE.Com - Dedicated to mining blogs for business intelligence.

This posting is my own and doesn't necessarily represent RelevantNoise's
positions, strategies or opinions.

Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html

Looking for a FAQ on Indexing Services/SQL FTS
http://www.indexserverfaq.com



[quoted text, click to view]

Paul Ibison
6/26/2006 8:15:36 PM
Sal,

you just need to run:

exec sp_addarticle @publication = 'tTestFNames'
, @article = 'tEmployees'
, @source_table = 'tEmployees'

exec sp_addsubscription @publication = 'tTestFNames'
, @article = 'tEmployees'
, @subscriber = 'RSCOMPUTER'
, @destination_db = 'testrep'

(...or do it through the GUI). After that, run the snapshot agent and the
new article will be created and propagated. This is different to merge
replication where the complete snapshot will get created.

Cheers,

Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Paul Ibison
7/18/2006 12:00:00 AM
Hi Makarand,
please take a look at sp_repladdcolumn in BOL.

Cheers,

Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)



Makarand Keer
7/18/2006 3:20:01 AM
Paul

I ahve similar conditions but instead of new article I wanted to add an
extra columns to existing article in Publisher.

How to go about it?

Regards
Makarand


[quoted text, click to view]
Moh
10/15/2007 1:45:02 PM
Paul - This is true with SQL2K. However, SQL2K5 when you create snapshot
after adding article it generates snapshot for all articles including ones
you added.

--
Sr DBA
Pier 1 Imports
mabbas@Pier1.com


[quoted text, click to view]
AddThis Social Bookmark Button