Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

How to alter a primary key on a Replicated Table in SQL Server 2008

$
0
0

We have a table in Sql Server 2008 R2, which has been (Transactional Replication) replicated to two subscriber. We need to increase the size of primary key column from char(14) to char(28).This specific article is part of publication that includes other articles.

I fallowed the following steps and it wroked fine.

1- Remove that article from publication

2- Apply the changes on primary key on publisher and subscribers

3- Re-Add article to publication

When I checked the web,I noticed that many people were talking about fallowing steps:

1- drop the subscription

2- drop the article

3- modify the table

4- add the article
5- add the subscription

Do I need to drop the subscription?


A.G


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>