Question

Some SQL Server updates have happened outside the maintenance window, which have caused the server to be rebooted. How can I stop this from happening again in future?

Below is what I can see when looking at the Windows Update Settings:

enter image description here

Was it helpful?

Solution

To prevent SQL Server updates to be installed automatically, you need to:

  1. open up PowerShell window (Command prompt will also work)
  2. type "sconfig.cmd" and run it
  3. press 5 to select "Windows Update Settings"
  4. set it to "M" which is "Manual"

Important: choose "Manual", NOT "DownloadOnly", because even with "DownloadOnly" setting, some Windows Updates that Microsoft considers very important, may be still installed and machine will be rebooted (I've experienced it myself)

This way you have total control over when and how to install Windows and SQL Server updates

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top