March 1, 2012 at 9:39 am
Suresh B. (2/29/2012)
sqldba_newbie (2/27/2012)
...Apart from getting new articles, would it also capture schema changes for an existing article?I believe it creates "snapshot" of only the new articles.
I believe it does NOT consider any "schema changes" for existing articles.
Schema changes are anyway replicated by transactional replication. Check your publication options. If it is disabled for some reason, enable it.
Suresh i tried different options to get the snapshot ONLY for new articles but didn't work for me. Sounds like this did work for you. Would you be able to share the exact steps you did to achieve this? Thanks
March 1, 2012 at 9:44 pm
1) Run the following (with your database and publication name):
USE <Database>
GO
EXEC sp_changepublication
@publication = 'MainPub',
@property = N'allow_anonymous',
@value = 'false'
GO
EXEC sp_changepublication
@publication = 'MainPub',
@property = N'immediate_sync',
@value = 'false'
GO
2) Add new article to the publication using UI.
3) Right click on the publication. Select "View Snapshot Agent Status".
Click on "Start" button.
This will generate snapshot for only the newly added articles.
I have done this many times in different production and test environments. It should work in your environement as well.
March 2, 2012 at 8:37 am
Suresh B. (3/1/2012)
1) Run the following (with your database and publication name):
USE <Database>
GO
EXEC sp_changepublication
@publication = 'MainPub',
@property = N'allow_anonymous',
@value = 'false'
GO
EXEC sp_changepublication
@publication = 'MainPub',
@property = N'immediate_sync',
@value = 'false'
GO
2) Add new article to the publication using UI.
3) Right click on the publication. Select "View Snapshot Agent Status".
Click on "Start" button.
This will generate snapshot for only the newly added articles.
I have done this many times in different production and test environments. It should work in your environement as well.
This is awesome. This works !!!!. Thanks again.
August 25, 2012 at 8:27 am
Hi Suresh,
Please confirm, post adding the article and starting the agent snapshot status. Do we need to set the publication properties as previously defined and also confirm post setting does it create snapshot again ???
Regards,
Neeraj
August 26, 2012 at 3:17 am
Hi Neeraj,
I did not understand your questions correctly.
Yes, Setting the publication property is needed.
Regards,
Suresh
August 26, 2012 at 4:49 am
Hi Suresh,
Thanks for answering.
I wanted to know post setting the publisher properties does it generate the snapshot again to sync with subscriber.
Regards,
Neeraj
August 26, 2012 at 5:34 am
Hi Suresh,
Thanks for the answer. I wanted to know whether the snapshot will be generated post setting the publisher properties to sync both the publisher and subscriber.
Regards,
Neeraj
August 27, 2012 at 10:15 am
No. Changing the publication property does not trigger snapshot.
You need to manually start the snapshot.
August 28, 2012 at 10:01 am
Thanks , its working.
again should i set the publication options to true ?
August 29, 2012 at 12:34 am
You can leave the publication option as "False".
It won't break anything.
Viewing 10 posts - 16 through 24 (of 24 total)
You must be logged in to reply to this topic. Login to reply