Hi,
- SQL 2008R2
Been having issues with this for a while so I thought to test the whole procedure in a sandpit project. Below are the steps I've taken, however the problem I have is that after a restore my publication has disappeared and therefore there is no replication between the two databases.
Is it not common practice to have a published database that gets restored and you wish replication to continue?
- Create database AAA in full recovery mode
- Backup AAA and restore as AAA_Replicated
- Import single table of data
- Create transactional publication on this table, no filtering.
- Create AAA_Replicated as a subscriber
- Update AAA and check the replication is working.
- Stop the log reader agent
- Disable any replication related agent jobs.
- Put the database AAA into single user mode
- Restore AAA from the backup used to create AAA_Replicated using KEEP_REPLICATION
There are now no publications, should there be?
A separate issue. From a previous post I was under the impression that I needed to execute a sp_repldone command, this does not work as it says the database is not published - fits in with their being no publications in the \Replication folder of SSMS.
USE aaa EXEC sp_repldone @xactid = NULL, @xact_segno = NULL, @numtrans = 0, @time= 0, @reset = 1
Any ideas anyone?