Professional Documents
Culture Documents
Replication
Replication
Replication
Use the queries below to identify all Publisher and Subscriber servers.
sp_helpdistpublisher
SELECT *
FROM [distribution].[dbo].[MSpublisher_databases]
sp_helpsubscription
4) How many rows do you get back? If around 1 million rows proceed to save those
rows. If more, determine which distribution agent is behind (lowest LSN) and see
what steps can be used to move that Distribution Agent forward.
5) Save rows returned by the above queries to temp tables before we truncate the
Replication tables:
Begin Transaction
where xact_seqno>=0x00000045000002560003000000000000
where xact_seqno>=0x00000045000002560003000000000000
–did you get same row counts as in step 3), if yes, then commit the transaction
Commit Transaction
6) To verify you can query the temp tables and make sure that the rows were
selected out. Then, perform the following to truncate the two tables in the
distribution database:
7) Once these are emptied, insert our rows back in from our temp tables: