Site Database has a backlog of SQL Change Tracking Data

This post should help you to fix the warning “The site database has a backlog of SQL change tracking data”. I am going to cover about SQL Server change tracking cleanup introduced in SCCM 1810.

Starting in SCCM 1810, many admins started to see a warning while performing the prerequisite check. The site database has a backlog of SQL change tracking data.

This warning is seen because the in-console update wizard now performs a check to see if the site database has a backlog of SQL change tracking data.

Most of all, this warning doesn’t prevent you from installing the update. It’s a warning not an error. You can ignore the warning and install the update. But why do you want see that Yellow exclamation icon when you can actually fix it.

The below warning appeared while performing SCCM 1910 Prerequisite check.

The site database has a backlog of SQL change tracking data
The site database has a backlog of SQL change tracking data

Microsoft explains why this warning comes up and also provides a fix for this. The solution is already documented here however I believe the steps covered in this post should help you to fix the warning.

The site database has a backlog of SQL change tracking data

You can manually verify if the site database has a backlog of SQL change tracking data. First of all, create a diagnostic connection to your site database. Now here is the common error that you see while performing this step.

Using SQL Server Management Studio’s when you connect to admin:<instance name>, you see an error. Dedicated administrator connections are not supported via SSMS as it establishes multiple connections by design. (Microsoft.SqlServer.Management.SqlStudio.Explorer).

Dedicated administrator connections are not supported via SSMS

So to create a diagnostic connection to site database, connect to your SCCM Database engine first.

connect to your SCCM Database engine first.

Create a new Database Engine Query and connect to admin:<instance name>.

Site Database has a backlog of SQL Change Tracking DataIn a dedicated administrator connection query window, enter the below commands. Replace the ConfigMgr Database name with your site database name. Click Execute.

USE <ConfigMgr database name>
EXEC spDiagChangeTracking

SQL Server Change Tracking Cleanup

Wait for the query to run and now look at the CT_Days_Old value which is 190 days in my case. This value tells you the age (days) of the oldest entry in your syscommittab table.

As per Microsoft, the value should be five days, which is the Configuration Manager default value. Most of all don’t modify or change this default value at any cost.

At times of heavy data processing or replication, the oldest entry in syscommittab could be over five days. If this value is above seven days, run a manual cleanup of change tracking data.

CT_Days_Old value

To clean up the change tracking data, run the below command in the dedicated administration connection.

USE <ConfigMgr database name>
EXEC spDiagChangeTracking @CleanupChangeTracking = 1

The above command starts a cleanup of syscommittab and all of the associated side tables. It may take several minutes or several hours to complete.

Finally take a look at CT_Days_Old value which is now 4.
clean up the change tracking dataClose the SQL server management studio.

Run Configuration Manager Prerequisite Check

In the SCCM console, go to Updates and Servicing node. Right click the Configuration Manager update and run prerequisite check again.

Congratulations you have successfully fixed “The site database has a backlog of SQL change tracking data” warning. I hope this post helps.

SCCM 1910 Prerequisite Check

Related Posts

2
Leave a Reply

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
newest oldest most voted
Malcolm Walker
Guest
Malcolm Walker

Excellent Post. I have been banging my head up against the wall for explanation to why this was occurring.

CMMN
Guest
CMMN

Thank you!

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More