March 9, 2020 at 7:31 pm
Hello,
I'm am an experienced DBA and developer but am new to replication. I have to set up replication on a ~100 GB database and have some questions. I am replicating from our production database to a reporting database on a different server.
Let me know if you have any questions or need clarification on anything.
Thanks,
Brett
March 9, 2020 at 11:53 pm
There are too many variables to guess how long it will take - number of articles and data, metadata needed for those articles, hardware, network latency would all play a part. If you are concerned about it taking too long, you can initialize with a snapshot or you can initialize with a backup.
You would want to do this off hours as it does impact the publisher and if you distributor is also your publisher, there is even more impact. The buffer pool is also impacted so off hours is best.
You can't use the existing database - you want to initialize with a snapshot or backup so that replication agents can start tracking the transactions from that point.
To remove the log shipping, you can so something like the following:
-- On the primary
EXEC MASTER.dbo.sp_delete_log_shipping_primary_secondary
N'PrimaryDatabaseName',
N'SecondaryServerName',
N'SecondarDatabaseName'
GO
EXEC MASTER.dbo.sp_delete_log_shipping_primary_database N'PrimaryDatabaseName'
GO
-- On the secondary
EXEC MASTER.dbo.sp_delete_log_shipping_secondary_database N'SecondaryDatabaseName'
Sue
March 10, 2020 at 1:58 pm
Sue,
Thanks for the response. Lots of good info.
Brett
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply