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

sql server replication

group:

changing a datatype


changing a datatype David Wilce
8/30/2005 9:35:01 PM
sql server replication:
Hi - I want to change the precision/scale on a decimal datatype on a field
which is in a replicated table (merge). I tried to alter the field on the
publisher but I receive a message saying that I can't do this due to the
table being a replicated table.

Anyone know tips on how to do this (without removing replication). Thanks.

Re: changing a datatype David Wilce
8/31/2005 10:38:07 AM
Thanks Paul.

I'll consider re-initialising as I don't have that much data yet and just
conducting tests now anyway. Do I have to pretty much drop replication, do
the changes and start again with merge replication set up?


[quoted text, click to view]

Re: changing a datatype Paul Ibison
8/31/2005 10:47:02 AM
Hi Dave,
unfortunately you can't do this in merge.
Have a look at part (b) in this article for a workaround :
http://www.replicationanswers.com/AddColumn.asp
Alternatively you'll have to reinitialize in the case of merge.
Incidentally, this is no longer an issue in SQL Server 2005.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)

Re: changing a datatype Paul Ibison
8/31/2005 12:34:35 PM
Dave - you don't need to drop replication as such - just the merge
publication.
Cheers,
Paul Ibison SQL Server MVP, www.replicationanswers.com
(recommended sql server 2000 replication book:
http://www.nwsu.com/0974973602p.html)





AddThis Social Bookmark Button