all groups > sql server replication > july 2005 >
You're in the

sql server replication

group:

On the Fly Schema Changes in Merge Replication


On the Fly Schema Changes in Merge Replication TCorp
7/6/2005 2:32:47 PM
sql server replication:
I have always assumed that I must completely disable replication to make any
sort of change to published articles, but these article seem to say
otherwise:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/replsql/replimpl_22pf.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/howtosql/ht_replctem_6l61.asp

I would like to add a column to an existing published article (during low
activity hours), but it seems to me a new snapshot would need to be created
(plus re-initialization of subscribers). My subscribers can be unavailable
for days (off-line but updating and inserting all the while). I can
understand that subscriber updates to the article may be lost at
re-initialization, but are other tables adversly effected?




Re: On the Fly Schema Changes in Merge Replication Paul Ibison
7/7/2005 9:28:15 AM
I'm confused - why do you think that a snapshot would be necessary? The
article may have misled you - if the column already exists and has data in
it, then you're right, but if it an entirely new column, sp_repladdcolumn
will do the trick without new snapshots, reinitialization etc.
HTH
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Re: On the Fly Schema Changes in Merge Replication TCorp
7/7/2005 11:23:45 AM
Thanks Paul.

I suppose my assumptions about a snapshot were incorrect. I thought that
any schema change would require a new snapshot. So I will not need to worry
about my off-line subscribers losing data.

Where can I find more information about what information is kept in a
snapshot?

[quoted text, click to view]

Re: On the Fly Schema Changes in Merge Replication Paul Ibison
7/8/2005 9:17:12 AM
Run the snapshot agent then have a look in the distribution working folder -
you'll see a bunch of text files to create teh schema, bcp data files, index
creation scripts etc. The exact files created depend mostly on the article
properties selected.
HTH
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Re: On the Fly Schema Changes in Merge Replication TCorp
7/18/2005 2:22:49 PM
Thanks for the help!

AddThis Social Bookmark Button