Unable to Install SQL 2017 CUs

Panopticon 11 Reputation points
2022-08-15T16:43:42.56+00:00

I am in the process of upgrading our SQL 2017 servers to the current CU. I have ran across two systems that won't allow me to apply the update. In the SQL installer, I see below text when I click on the SQL Instance name.

"231128-sql056.pngThe version of SQL Server instance MSSQLSERVER does not match the version expected by the SQL Server update. The installed SQL Server product version is 14.0.3381.3, and the expected SQL Server version is 14.0.1000.169."

I am unsure where the installer pulls the version info from. I have compared the registry against a couple of other systems and nothing is standing out as being incorrect, so not sure where it is pulling the 14.0.1000.169 value for the "expected sql version". I tried removing the previous CU so I could reapply it, but it didn't appear that it removed fully as it was still in the add/remove programs screen. Everything I have found online points to older versions where people were trying to install CUs on top of the wrong Service Packs, which doesn't apply in this case since SQL 2017 doesn't have service packs.

Any ideas would be greatly appreciated.

SQL Server | Other
{count} votes

3 answers

Sort by: Most helpful
  1. CathyJi-MSFT 22,406 Reputation points Microsoft External Staff
    2022-08-16T05:54:32.077+00:00

    Hi @Panopticon ,

    Which version of CU that you want to apply to SQL server 2017 CU23? Suggest you applying the latest CU30 to this SQL server instance. In addition, did you choose the correct instance name that you want to upgrade during upgrading process? How many SQL server instance that installed on your server?

    -----------------------------------------------------------------------------------------------------------------------------------------------

    If the answer is helpful, please click ”Accept Answer” and kindly vote it.

    1 person found this answer helpful.

  2. Panopticon 11 Reputation points
    2022-10-19T14:00:03.457+00:00

    Cause

    We found that there is an instance mapping for Report Server that maps default instance name (MSSQLSERVER) to SSRS instance ID:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\RS
    MSSQLSERVER REG_SZ SSRS

    252073-image.png

    This causes the SQL setup to fail to patch the default instance.

    Recommendation/Resolution

    Deleting the 'MSSQLSERVER REG_SZ SSRS' registry key at 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\RS' allows SQL setup to successfully patch the default instance. Upon further investigation
    Furthermore, we confirmed that this key should not exist as it implies the presence of a second SSRS 2017 instance which is not possible as SSRS 2017+ does not support multiple instances on the same server.

    1 person found this answer helpful.

  3. Tom Phillips 17,781 Reputation points
    2022-08-15T17:17:08.757+00:00

    The error might just be wrong. It sounds like you are trying to downgrade to a prior CU.

    Try redownloading CU30 and try again.

    https://support.microsoft.com/en-us/topic/kb5013756-cumulative-update-30-for-sql-server-2017-274943fa-8dde-4844-90ed-d3b587fa0c7c


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.