Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Process for Dropping & Readding articles in Trasnsreplication


Process for Dropping & Readding articles in Trasnsreplication

Author
Message
quackhandle1975
quackhandle1975
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2754 Visits: 1227
Hi,

I have a Publisher (Pub_A) with two subscribers (Sub_A/Sub_B), both are transactional replication with pull subscriptions.

The publication has ten articles. I have a requirement to drop two articles, add a column to each, then add them back in to the publication. Just looking for a sanity check for the correct process.

1. Drop subscription SubA & SubB
2. Drop articles at PubA
3. Make changes
4. Add articles to PubA
5. Add pull subscriptions on SubA/SubB
6. Generate snapshot for new articles only.


Thanks

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
MyDoggieJessie
MyDoggieJessie
SSCarpal Tunnel
SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)SSCarpal Tunnel (4.9K reputation)

Group: General Forum Members
Points: 4862 Visits: 7363
Seems about right but would strongly encourage you to verify that the anonymous/immediate_sync options have been set properly, if they are not set to 0, when you trigger the snapshot...it will create snapshots for all articles (not just the two you want).

You can check this by running
/* On the distributor run to verify the publishers - make CERTAIN allow anonymous/immediate_sync are all ZEROS */
SELECT publisher_id, publication_id,
publisher_db ,
publication , allow_anonymous, immediate_sync
FROM distribution. dbo.MSpublications WHERE publication_type = 0 --> 0 for transactional, 1 for snapshot

/* If IMMEDIATE_SYNC is not zero, run the following on the ditributor */
EXEC sp_changepublication @publication = 'YourPub', @property = 'allow_anonymous', @value = 'false'
GO
EXEC sp_changepublication @publication = 'YourPub', @property = 'immediate_sync', @value = 'false'
GO



______________________________________________________________________________
"Never argue with an idiot; They'll drag you down to their level and beat you with experience" ;-)
quackhandle1975
quackhandle1975
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2754 Visits: 1227
Cheers MDJ.

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
MysteryJimbo
MysteryJimbo
Ten Centuries
Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)Ten Centuries (1.3K reputation)

Group: General Forum Members
Points: 1348 Visits: 15327
Will data be modified during the process and are you just adding a column?

If the data is static and will remain static then you can skip the snapshot generation step depending on the size of the table.
quackhandle1975
quackhandle1975
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2754 Visits: 1227
MysteryJimbo (7/31/2014)
Will data be modified during the process and are you just adding a column?

If the data is static and will remain static then you can skip the snapshot generation step depending on the size of the table.


No, data will remain static and snaphots are not used here.

All sorted now, thanks.

qh

Who looks outside, dreams; who looks inside, awakes. – Carl Jung.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search