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

  • 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?

  • In the Transitional Replication Schema Changes are propagated when Distribution agent runs.

    You do not have to drop subscription.

    Read through this.

    http://msdn.microsoft.com/en-us/library/ms151870(v=sql.90).aspx

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply