Sign in with Microsoft
Sign in or create an account.
Hello,
Select a different account.
You have multiple accounts
Choose the account you want to sign in with.

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.

Was this information helpful?

What affected your experience?
By pressing submit, your feedback will be used to improve Microsoft products and services. Your IT admin will be able to collect this data. Privacy Statement.

Thank you for your feedback!

×