Skip to content
ConfigMgr SCCM Site Database Update Error

ConfigMgr SCCM Site Database Update Error

Written By Anoop C Nair
Last Updated August 5, 2024
Posted In SCCM
SHARE

Fix ConfigMgr SCCM Site Database Update Error. You should be aware of the latest release, SCCM 2012 SP1 cumulative update 3 (CU3), released on September 20th.

Database server configuration errors belong to issues that occur due to misconfigurations or challenges in the settings and factors of the database server. These errors can lead to linking problems, running issues, or sudden behavior of the database server.

In this post, I will explain an issue faced during Cumulative Update 3 installation.

I tried to install ConfigMgr (SCCM) 2012 SP1 CU3 in a lab environment created by somebody else. The wizard took “more” time to complete. It finished with a warning at the “Update Site Database” step.

Patch My PC

FIX ConfigMgr SCCM Site Database Update Error

The log file “cm12-sp1cu3-kb2882125-x64-enu.log” helped get the following errors. Where can you find this log-in SCCM (ConfigMgr) 2012 site server? OK, try “C:\Windows\Temp”. FIX ConfigMgr SCCM Site Database Update Error.

The EXECUTE permission was denied on the object ‘fnIsPrimary’,database ‘CM_LAB’, schema ”dbo’

Task status detail added: A SqlException occurred, Line Number: 44Error: 229 Message: The EXECUTE permission was denied on the object ‘fnIsPrimary’, database ‘CM_LAB’, schema ‘dbo’

Task ‘Perform Database Update’ completed. state is ‘warning’ LastStatus: A SqlException occurred, 44Error: 229 Message: The EXECUTE permission was denied on the object ‘fnIsPrimary’, database ‘CM_LAB’, schema ‘dbo’

setup exit status 3001 (task State: warning)

Yes, the errors themselves indicate that this has to do with SQL permissions. So, I checked whether my account has all the permissions needed for the SQL DB update. FIX ConfigMgr SCCM Site Database Update Error.

The SysAdmin server role was missing, so I added it to my account. Now, how do I manually update the SCCM / ConfigMgr DB? ConfigMgr SCCM Site Database Update Error.

Okay, how do I update CU3 again? I’d like to reapply CU3 for the Site database update, which failed earlier. No! You can update the site database manually with the update.sql file.

This file is located in the following location: “Program FilesMicrosoft Configuration ManagerhotfixKB2882125update.sql.” ConfigMgr SCCM Site Database Update Error?

When you try to run a update.sql file from a remote SQL server, you may get the following error: The dll files are missing from the SQL server. In that case, you must edit the SQL file to point to the ddl file’s UNC path (on the primary server).

ConfigMgr SCCM Site Database Update Error - Fig.1
ConfigMgr SCCM Site Database Update Error – Fig.1

Msg 6502, Level 16, State 7, Line 2

CREATE ASSEMBLY failed because it could not read from the physical file ‘[[SMS_ROOT]]\bin\x64\MessageHandlerService.dll’: 50(failed to retrieve text for this error. Reason: 15105).

Msg 6528, Level 16, State 1, Procedure fnCompressData, Line 10

Assembly ‘MessageHandlerService’ was not found in the SQL catalog of database ‘CM_LAB’.

Msg 6528, Level 16, State 1, Procedure fnConvertBase64StringToBinary, Line 10

Assembly ‘MessageHandlerService’ was not found in the SQL catalog of database ‘CM_LAB’

Free SCCM Training Part 1 | 17 Hours Of Latest Technical Content | ConfigMgr Lab HTMD Blog (anoopcnair.com)

We are on WhatsApp now. To get the latest step-by-step guides, news, and updates, Join our Channel. Click here – HTMD WhatsApp.

Author

Anoop C Nair is Microsoft MVP from 2015 onwards for consecutive 10 years! He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is Blogger, Speaker, and Local User Group Community leader. His main focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security, Career etc.

Written by

Anoop C Nair is Workplace Technology solution architect with 25+ years of experience in global enterprise organizations such as JP Morgan, Capgemini, etc. Microsoft Certified Trainer. Microsoft MVP from 2015 onwards for consecutive 11+ years! He also conducts Intune and modern workplace tech training for enterprise organizations. He is Blogger, Speaker, and Founder of HTMD Community and HTMD Conference. His main focus is on Device Management technologies like Intune, Windows, Cloud PC. He writes about technologies like Intune, SCCM, Windows, Cloud PC, Windows, Entra, Microsoft Security.

Discussion · 12 comments

  1. Most of update.sql ran, but I got the CREATE ASSEMBLY error. The SCCM database is on a remote server, so I did as you recommended and changed the SMS_ROOT path to a UNC path in update.sql, but received the following Access Denied message in the script results:


    Msg 6501, Level 16, State 7, Line 2
    CREATE ASSEMBLY failed because it could not open the physical file “\\xxxxmsrv\c$\Program Files\Microsoft Configuration Manager\bin\X64\messagehandlerservice.dll”: 5(Access is denied.).
    Msg 6528, Level 16, State 1, Procedure fnCompressData, Line 10
    Assembly ‘MessageHandlerService’ was not found in the SQL catalog of database ‘CM_XXX’.

    I’m able to log on to the sql server using the same credentials under which update.sql script was run, and I’m able to manually access the file via UNC. Any ideas?

  2. Yes, I did. The solution was to copy mwssagehandlerservice.dll to c:\temp on the remote sql server and modify update.sql to look local versus looking remove via unc. Thanks for all your posts anoop. You’ve saved me a lot of time. Appreciate your contributions to the community!

  3. I don’t have access right to SQL database and have to ask the SQL administrator run the update.sql for me after modifying the path for messagehandlerservice.dll. I got emailed that the script has been successfully run but how do I check if the site databases actually updated?

  4. Hi All,

    environment: SCCM 2012R2 / SQL 2008R2
    Just follow all the steps to apply CU4 but when it comes to updating SQL i’m getting following errors: Could someone please advise re solving the problem?

    Msg 2812, Level 16, State 62, Line 1
    Could not find stored procedure ‘k’.
    Msg 207, Level 16, State 1, Procedure spAddRecoveryTrackingRecord, Line 41
    Invalid column name ‘TransportType’.
    Msg 207, Level 16, State 1, Procedure spAddRecoveryTrackingRecord, Line 46
    Invalid column name ‘TransportType’.
    Msg 207, Level 16, State 1, Procedure spAddRecoveryTrackingRecord, Line 49
    Invalid column name ‘TransportType’.

    (0 row(s) affected)
    Msg 208, Level 16, State 6, Procedure v_ContentDistributionReport_G, Line 2
    Invalid object name ‘v_ContentDistributionReport_G’.

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (2 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (2 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (2 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (1 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    (0 row(s) affected)

    1. StaffSo what was the end result of the SCCM 2012 R2 CU4 update ? Is it failed or partially successful? Have you tried the SQL script which is available as .SQL file in the source of CU4?

      Regards
      Anoop

      1. my post above seems to be the end result so far. did run the mgm console and everything looks OK.
        my only concern are the ‘errors’
        Msg 2812, Level 16, State 62, Line 1
        Could not find stored procedure ‘k’.
        Msg 207, Level 16, State 1, Procedure spAddRecoveryTrackingRecord, Line 41
        Invalid column name ‘TransportType’.
        Msg 207, Level 16, State 1, Procedure spAddRecoveryTrackingRecord, Line 46
        Invalid column name ‘TransportType’.
        Msg 207, Level 16, State 1, Procedure spAddRecoveryTrackingRecord, Line 49
        Invalid column name ‘TransportType’.

        thanks

      2. StaffSorry, I don’t have much details about the stored procedure “spAddRecoveryTrackingRecord” and column name “TransportType”. Two options left as per my knowledge. 1) if you think the DB upgrade didn’t go well then you can try running the SQL files which is available in CU4 source to update the DB. 2) call CSS for more help as editing DB manually is not a supported scenario.

        Regards
        Anoop

Join the discussion

Your email address will not be published. Required fields are marked *

Related guides

Intune

Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws

Key Takeaways Windows 11 KB5101650 KB5099414 July 2026 Patch and 3 Zero Day Vulnerabilities and 570 Flaws! In the July 2026 Patch, Microsoft introduced new features designed to improve the overall Windows experience. The update adds enhancements to Windows Update for more flexible update management and introduces Point-in-Time Restore, providing an additional recovery option for […]

AC Anoop C Nair 9 min read
Intune

2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws

Key Takeaways 2026 June KB5094126 KB5093998 Windows 11 Patch | 3 Zero Day Vulnerabilities and 200 Flaws! The June 2026 Windows 11 Patch Tuesday update brings several improvements to File Explorer. It adds support for additional archive formats, including UU, CPIO, XAR, and NuGet Packages (NUPKG). The update also preserves View and Sort preferences in […]

AC Anoop C Nair 10 min read
Intune

2026 May KB5089549 KB5087420 Windows 11 Patch | 0 Zero Day Vulnerabilities and 120 Flaws

Key Takeaways The Windows 11 May 2026 Patch KB5089549 KB5087420 Update brings important security fixes, performance improvements, and reliability enhancements across the operating system. The update introduces new features such as Xbox Mode for gaming, File Explorer improvements, enhanced input and sharing experiences, better taskbar and Windows Hello reliability, and additional enterprise management capabilities for […]

AC Anoop C Nair 8 min read
SCCM

ConfigMgr 2603 Introduces New Early Update Enrollment Process

Key Takeaways In this post we are discussing the ConfigMgr 2603 Introduces New Early Update Enrollment Process. Microsoft has officially released Configuration Manager version 2603 to the Early Update Ring, giving organizations an opportunity to test upcoming improvements before the global production rollout. The release is targeted at enterprises running ConfigMgr version 2409 or later […]

AC Anoop C Nair 3 min read