Uninstall SQL Patch with SkipRules
-
09-10-2020 - |
Question
I've recently installed Cumulative Update 6 for SQL Server 2014 SP2. I installed it on the passive node of a 2 node cluster. To install the patches I paused the role in cluster manager and ran the setup from command line with:
/SkipRules=Cluster_IsOnlineIfClustered /action=patch
I now need to uninstall CU6 as we've come across some issues we need to resolve. However, I am unable to uninstall the patch as I cannot get past the rule checks. If I run the same command to start setup the UI does not give me the uninstall/maintenance options.
Is there anyway to skip rules to uninstall a patch, or am I going to have to remove this node from the cluster before I can proceed?
Solution
With confirmation from Pix(from Chat) the correct way to remove cumulative update is to use
/RemovePatch
instead of using /uninstall
. The way to remove updates is documented in Installing Updates from Command Prompt.
The script would be
"sqlserver2014-kb4032541-x86_080a5c3a38b721a9587c2072375921161896e19d.exe" /qs /Action=RemovePatch /InstanceName=InstanceName /SkipRules=Cluster_IsOnlineIfClustered