Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What happens to permissions granted in a subscription database if a subscription is reinitialized?

0
10 Posted

What happens to permissions granted in a subscription database if a subscription is reinitialized?

0
10

By default, objects at the Subscriber are dropped and recreated when a subscription is reinitialized, which causes all granted permissions for those objects to be dropped. There are two ways to handle this: • Reapply the grants after the reinitialization using the techniques described in the previous section. • Specify that objects should not be dropped when the subscription is reinitialized. Prior to reinitialization, either: • Execute sp_changearticle or sp_changemergearticle. Specify a value of ‘pre_creation_cmd’ (sp_changearticle) or ‘pre_creation_command’ (sp_changemergearticle) for the parameter @property and a value of ‘none’, ‘delete’ or ‘truncate’ for the parameter @value. • In the Article Properties –

dialog box in the Destination Object section, select a value of Keep existing object unchanged, Delete data. If article has a row filter, delete only data that matches the filter. or Truncate all data in the existing object for the option Action if name is in use. For

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123