Error while importing drivers into SCCM with SQL Server 2022

We get below error trying to import Drivers on to SCCM with SQL 2022

Microsoft.ConfigurationManagement.ManagementProvider.WqlQueryEngine.WqlQueryException

Not found , property = CI_ID

This issue occurs due to the Database compatibility with the SCCM Current branch.

In order to fix this issue, we need to alter the CM DB compatibility from 160 to 150.

Here is the compatibility table for reference.

ProductDatabase Engine versionDefault compatibility level designationSupported compatibility level values
Azure SQL Database16160160, 150, 140, 130, 120, 110, 100
Azure SQL Managed Instance16150160, 150, 140, 130, 120, 110, 100
SQL Server 2022 (16.x)16160160, 150, 140, 130, 120, 110, 100
SQL Server 2019 (15.x)15150150, 140, 130, 120, 110, 100
SQL Server 2017 (14.x)14140140, 130, 120, 110, 100
SQL Server 2016 (13.x)13130130, 120, 110, 100
SQL Server 2014 (12.x)12120120, 110, 100
SQL Server 2012 (11.x)11110110, 100, 90
SQL Server 2008 R2 (10.50.x)10.5100100, 90, 80
SQL Server 2008 (10.0.x)10100100, 90, 80
SQL Server 2005 (9.x)99090, 80
SQL Server 2000 (8.x)88080

Execute the below query on the SQL Server 2022 with elevated prevalages.

Check Current Compatibility Level:

SELECT compatibility_level FROM sys.databases WHERE name = 'CM_XXX';

Set the Compatibility Level to 150:

ALTER DATABASE YourDatabaseName SET COMPATIBILITY_LEVEL = 150;

In case of any issues after the altering the Compatibility,

You can revert the compatibility level back to 160

ALTER DATABASE YourDatabaseName SET COMPATIBILITY_LEVEL = 160;

Sources:

Leave a Comment