Assume that you use transactional replication in Microsoft SQL Server 2012 or SQL Server 2014, and you enable updatable subscriptions for this replication. The replication is configured to have lots of articles and publications. After you apply a SQL Server hotfix or security update, the instance on the publisher is in script upgrade mode for a long time.
The issue occurs because, during the upgrade process, recreating store procedures costs most of the time that can be optimized.
Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.