I have a database that is replicated in several locations. It is setup as transactional replication. However, now I need to add more columns to the table. Add more stored procedures and etc. Hence, if I make the change in the publisher, will it replicate across the subscribers or will it negatively impact the replication?
Suggestions will be very helpful.
Best Answer
You should be able to make DDL changes as described in this article .
Make Schema Changes on Publication Databases
make sure you dont use SSMS. Use T-SQL only.
How to: Replicate Schema Changes (Replication Transact-SQL Programming) specify a value of replicate_ddl for @property and a value of 1 for @value.
EDIT : Below is what you need to take care, if you want to avoid reinitializing subscription(s).
Change the sync_method to “native”.
By default, the @replicate_ddl is set to 0 “false”, meaning no schema changes are replicated.
Using T-sql:
Then we can add the column to table that is replicated as below:
Note that the column is nullable. If it is not null then it will generate below error: