Groups | Blog | Home
all groups > sql server replication > february 2007 >

sql server replication : Adding column to article on *susbcriber* side


Hilary Cotter
2/25/2007 12:00:00 AM
It should work. This is the normal way of carrying out what you are trying
to accomplish.

--
Hilary Cotter

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]

Ronald Green
2/25/2007 4:41:57 AM
Hi,

I've got a unidirectional transactional replication (on sql 2000) and
I want to add a column to a table on the subscriber's side, the column
allows nulls and is going to be updated on the subscriber.

I thought of creating the table, than adding the publication and when
I add this specific article, tell it to truncate the table if it
exists rather than to drop it.

Is there any flaw in this?

Thanks in advance,
R. Green
Ronald Green
2/25/2007 5:19:01 AM
Thanks a lot!

[quoted text, click to view]

Ronald Green
2/25/2007 6:03:06 AM
Hi,

I ran a little test, and it failed on delivering the snapshot because
of that extra column on the subscriber side. So the moral of the story
is to add the column in a post snapshot script which is not always the
best idea (if you already have your schema deployed and something is
dependant on this column), OR you can change the SYNC view on the
publisher and add a blank column to it prior to running the snapshot
agent.

R. Green


[quoted text, click to view]

Hilary Cotter
2/25/2007 2:51:27 PM
Arghhh!!!!!!!!!!!! Somehow I was assuming you would be doing a no-sync.
Yes, this could be accomplished via a post snapshot script.

--
Hilary Cotter

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]

AddThis Social Bookmark Button