Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Replication (2005)
 Adding Column

Author  Topic 

ranganath
Posting Yak Master

209 Posts

Posted - 2009-10-27 : 04:54:10
Hi
iam using sql2008.
i want to Add a column in Replicated Table (Transactional Replication ). i used the following script. and the ref this link

http://www.sql-server-performance.com/articles/dba/ddl_replication_2000_2005_p1.aspx

sp_repladdcolumn @source_object = N'Customers',
@column = N'Cat1', @typetext = ,N'varchar(25)',
@publication_to_add = N'data',@from_agent = 0,
@schema_change_script = NULL, @force_invalidate_snapshot = 1 ,
@force_reinit_subscription = 1

so it is effected in publisher database but not in reflected in
subscriber Db. we need to drop subscription for this article ? or any thing

any suggestions





ranganath
Posting Yak Master

209 Posts

Posted - 2009-10-27 : 09:01:42
i Got it
Go to Top of Page

krishnarajeesh
Yak Posting Veteran

67 Posts

Posted - 2009-11-04 : 02:57:15
schema changes are automatically updated to subscriber, if we set Replicate Schema Changes to true on publication properties.

Thanks,
Krishna
www.SQLServer.in
Go to Top of Page
   

- Advertisement -