Applies ToSQL Server 2012 Enterprise SQL Server 2012 Developer SQL Server 2012 Enterprise Core SQL Server 2012 Standard SQL Server 2014 Developer - duplicate (do not use) SQL Server 2014 Enterprise - duplicate (do not use) SQL Server 2014 Enterprise Core - duplicate (do not use) SQL Server 2014 Standard - duplicate (do not use) SQL Server 2014 Service Pack 2 - duplicate (do not use) SQL Server 2016 Developer - duplicate (do not use) SQL Server 2016 Enterprise - duplicate (do not use) SQL Server 2016 Enterprise Core - duplicate (do not use) SQL Server 2016 Standard - duplicate (do not use) SQL Server 2016 Service Pack 1

Summary

Currently in Microsoft SQL Server, the sp_MSsubscription_cleanup stored procedure is executed by the sp_MSdistribution_cleanup stored procedure. This, in turn, is executed by the distribution cleanup job.

However, the resource usage of the sp_MSsubscription_cleanup stored procedure is very high: it may take several minutes to complete, and the frequency of the distribution cleanup job is 10 minutes. This means that this costly stored procedure runs every 10 minutes with a duration of several minutes.

This update makes the following changes:

  • The costly sp_MSsubscription_cleanup stored procedure is executed by the sp_expired_subscription_cleanup stored procedure. This, in turn, is executed by the Expired Subscription Clean Up job.

  • The Expired Subscription Clean Up job runs every 24 hours. Therefore, the costly sp_MSsubscription_cleanup stored procedure will run only one time per day.

Resolution

This issue is fixed in the following cumulative updates for SQL Server :

Cumulative Update 6 for SQL Server 2016 RTM

Cumulative Update 3 for SQL Server 2016 SP1

Cumulative Update 5 for SQL Server 2014 SP2

Cumulative Update 12 for SQL Server 2014 SP1

Cumulative Update 8 for SQL Server 2012 Service Pack 3

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:

Latest cumulative update for SQL Server 2016

Latest cumulative update for SQL Server 2014

Latest cumulative update for SQL Server 2012 SP3

 

References

Learn about the terminology that Microsoft uses to describe software updates.

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.