Hi,
Due to a disaster, I had to restore production publisher database (which was a transactional publisher as well a merge publisher) to an earlier point of time. Before restoring the database, I had stopped distribution agent which resulted in lot of undistributed commands.
I deleted those records using the script given in https://sqlship.wordpress.com/2010/04/23/get-undistributed-transaction-list-transactional-replication/
That is records were deleted from distribution.dbo.msrepl_commands for the particular published database.
After that production database was restored and then the stored procedure exec sp_replrestart is executed on publisher database.
This stored procedure is running for almost 2 hours. Databasesize (mdf) is 7GB.Is it normal that exec sp_replrestart will run for this time?
Do I stop the stored procedure execution.
Any suggestions , please help.
Thanks