Hi all the SQL Gurus out there, i am currently having an issue with replication on our 2012 SQL Server environment. We decided to archive one of our tables which currently has over 30 million records, doing so in batches, what we noticed after running the forth batch in production is that only the first run of about 600K records was replicated into the archive table. Also where the proc deletes the records from the main table after moving the records to the history table, replication doesn't delete from the original records. So to sum up what i need help with,
- Replication is only replicating the first of the 4 archived batches.
Thank you in advance for your wisdom.
UPDATE: After breaking and rebuilding replication the source table now matches and replication is working as normal, however, the archive table still doesn't go past the 600 thousand records when the archive table in production currently has 8 million records.