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

sp_changearticle pre_creation_cmd requires force_reinit_subscription to on?

$
0
0

hello guys,

The following link as well as BOL says that changing the property of pre_creation_cmd using sp_changearticle requires only @force_invalidate_snapshot to be set to true. The option @force_reinit_subscription is not required to be set to true.

http://technet.microsoft.com/en-us/library/ms175980(v=sql.100).aspx
Look at the remarks section of the article.

However when I execute the proc with out @force_reinit_subscription to true, it errors out to me.

"Msg 20608, Level 16, State 1, Procedure sp_MSreinit_article, Line 190
Cannot make the change because there are active subscriptions. Set @force_reinit_subscription to 1 to force the change and reinitialize the active subscriptions."

This is what I am executing.  Please suggest what can I change so that I dont have to reinitialize the article again. This is a huge table having more than  200GB of data. There are five such tables that I need to change.  As per my concepts since I am not making any change to the existing replication subscriptions and this change of pre_creation_cmd will only apply when I reinitialize the subscription, I should not required the @force_reinit_subscription set to true.

sp_changearticle

@publication = 'Tran_sales_publish',

@article ='t_sales_orders',@property='pre_creation_cmd',

@value ='Truncate',

@force_invalidate_snapshot =1

--,@force_reinit_subscription =1


Viewing all articles
Browse latest Browse all 4054

Trending Articles



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