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


When you install patches on an instance of Microsoft SQL Server 2014 or 2016 that contains lots of databases, the setup may fail. And you may receive the following error message:

Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineConfigException: Failed to shutdown the instance with process ID xxxx. Error encountered: 
Microsoft.SqlServer.Configuration.Sco.ScoException: The service cannot accept control messages at this time.

Additionally, the SQL Server instance is left in a "Stopped" status.


This issue occurs because during the SQL Server patches installation, it will try to restart SQL Server service to apply the patch. However, if the SQL Server takes long time to terminate itself, setup will fail.

Note If there are many databases (such as, 300~1000 or more) and SQL Server is configured to use large amount of memory (such as, 20 GB~2 TB), SQL Server may take time to do clean shutdown of each database, and the patch setup may fail because SQL Server takes very long time to shutdown itself.


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

Cumulative Update 5 for SQL Server 2016 RTM

Cumulative Update 2 for SQL Server 2016 SP1

Cumulative Update 4 for SQL Server 2014 Service Pack 2

Each new cumulative update for SQL Server contains all the hotfixes and security fixes that were included in the previous cumulative update. Check out the latest cumulative updates for SQL Server:

Latest cumulative update for SQL Server 2016

L atest cumulative updates for SQL Server 201

Note After you apply this fix, the patch setup program will wait for SQL Server to stop up to 30 minutes. If more than 30 minutes SQL Server is still stopping, patch setup may still fail.



Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.



Learn about the terminology 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!