Moderator note: Moved from SQL Server Database Engine.
An error occurred during the installation process. The installer was unable to create the necessary database tables. The database is a patch for SQL2022 CU22 (SQLServer2022-KB5074819-x64). The specific log is as follows:
*** MERGE [dbo].[LU_LicensedProduct] AS TARGET ~ using (select [LicensedProductID], [ProductPool], [ProductName], ~ [FamilyName], [VersionSequence], [VersionCode], ~ GETUTCDATE() , N'$CD' ~ from tempdb.dbo.temp_LU_LicensedProduct) ~ as SOURCE ( [LicensedProductID], [ProductPool], [ProductName], ~ [FamilyName], [VersionSequence], [VersionCode], ~ [LastUpdated], [SourceSite]) ~ ON SOURCE.[LicensedProductID] = TARGET.[LicensedProductID] ~ when matched and (~ TARGET.[ProductPool] != SOURCE.[ProductPool] OR ~ TARGET.[ProductName] != SOURCE.[ProductName] OR ~ TARGET.[FamilyName] != SOURCE.[FamilyName] OR ~ TARGET.[VersionSequence] != SOURCE.[VersionSequence] OR ~ TARGET.[VersionCode] != SOURCE.[VersionCode] OR ~ TARGET.[SourceSite] != SOURCE.[SourceSite]) ~ then ~ UPDATE SET ~ [ProductPool] = SOURCE.[ProductPool], ~ [ProductName] = SOURCE. $$<Configuration Manager Setup><01-21-2026 15:47:39.317-480><thread=4140 (0x102C)>
*** [23000][515][Microsoft][ODBC Driver 18 for SQL Server][SQL Server]不能将值 NULL 插入列 'VersionCode',表 'CM_P01.dbo.LU_LicensedProduct';列不允许有 Null 值。UPDATE 失败。 $$<Configuration Manager Setup><01-21-2026 15:47:39.346-480><thread=4140 (0x102C)>
INFO: Executing SQL Server command: < MERGE [dbo].[LU_LicensedProduct] AS TARGET ~ using (select [LicensedProductID], [ProductPool], [ProductName], ~ [FamilyName], [VersionSequence], [VersionCode], ~ GETUTCDATE() , N'$CD' ~ from tempdb.dbo.temp_LU_LicensedProduct) ~ as SOURCE ( [LicensedProductID], [ProductPool], [ProductName], ~ [FamilyName], [VersionSequence], [VersionCode], ~ [LastUpdated], [SourceSite]) ~ ON SOURCE.[LicensedProductID] = TARGET.[LicensedProductID] ~ when matched and (~ TARGET.[ProductPool] != SOURCE.[ProductPool] OR ~ TARGET.[ProductName] != SOURCE.[ProductName] OR ~ TARGET.[FamilyName] != SOURCE.[FamilyName] OR ~ TARGET.[VersionSequence] != SOURCE.[VersionSequence] OR ~ TARGET.[VersionCode] != SOURCE.[VersionCode] OR ~ TARGET.[SourceSite] != SOURCE.[SourceSite]) ~ then ~ UPDATE SET ~ [ProductPool] = SOURCE.[ProductPool], ~ [ProductName] = SOURCE.[ProductName], ~ [FamilyName] = SOURCE.[FamilyName], ~ [VersionSequence] = SOURCE.[VersionSequence], ~ [VersionCode] = SOURCE.[VersionCode], ~ [LastUpdated] = SOURCE.[LastUpdated], ~ [SourceSite] = SOURCE.[SourceSite] ~ when not matched by TARGET then ~ INSERT([LicensedProductID], [ProductPool], [ProductName], [FamilyName], [VersionSequence], [VersionCode], ~ [LastUpdated], [SourceSite]) ~ VALUES(SOURCE.[LicensedProductID], SOURCE.[ProductPool], SOURCE.[ProductName], ~ SOURCE.[FamilyName], SOURCE.[VersionSequence], SOURCE.[VersionCode], ~ SOURCE.[LastUpdated], SOURCE.[SourceSite]); ~ TRUNCATE TABLE tempdb.dbo.temp_LU_LicensedProduct ~> $$<Configuration Manager Setup><01-21-2026 15:47:39.363-480><thread=4140 (0x102C)>
ERROR: Failed to execute SQL Server script: MERGE [dbo].[LU_LicensedProduct] AS TARGET ~ using (select [LicensedProductID], [ProductPool], [ProductName], ~ [FamilyName], [VersionSequence], [VersionCode], ~ GETUTCDATE() , N'$CD' ~ from tempdb.dbo.temp_LU_LicensedProduct) ~ as SOURCE ( [LicensedProductID], [ProductPool], [ProductName], ~ [FamilyName], [VersionSequence], [VersionCode], ~ [LastUpdated], [SourceSite]) ~ ON SOURCE.[LicensedProductID] = TARGET.[LicensedProductID] ~ when matched and (~ TARGET.[ProductPool] != SOURCE.[ProductPool] OR ~ TARGET.[ProductName] != SOURCE.[ProductName] OR ~ TARGET.[FamilyName] != SOURCE.[FamilyName] OR ~ TARGET.[VersionSequence] != SOURCE.[VersionSequence] OR ~ TARGET.[VersionCode] != SOURCE.[VersionCode] OR ~ TARGET.[SourceSite] != SOURCE.[SourceSite]) ~ then ~ UPDATE SET ~ [ProductPool] = SOURCE.[ProductPool], ~ [ProductName] = SOURCE.[ProductName], ~ [FamilyName] = SOURCE.[FamilyName], ~ [VersionSequence] = SOURCE.[VersionSequence], ~ [VersionCode] = SOURCE.[VersionCode], ~ [LastUpdated] = SOURCE.[LastUpdated], ~ [SourceSite] = SOURCE.[SourceSite] ~ when not matched by TARGET then ~ INSERT([LicensedProductID], [ProductPool], [ProductName], [FamilyName], [VersionSequence], [VersionCode], ~ [LastUpdated], [SourceSite]) ~ VALUES(SOURCE.[LicensedProductID], SOURCE.[ProductPool], SOURCE.[ProductName], ~ SOURCE.[FamilyName], SOURCE.[VersionSequence], SOURCE.[VersionCode], ~ SOURCE.[LastUpdated], SOURCE.[SourceSite]); ~ TRUNCATE TABLE tempdb.dbo.temp_LU_LicensedProduct ~ $$<Configuration Manager Setup><01-21-2026 15:47:39.377-480><thread=4140 (0x102C)>
ERROR: SQL Server error: <> $$<Configuration Manager Setup><01-21-2026 15:47:39.401-480><thread=4140 (0x102C)>
*** IF OBJECT_ID('tempdb.dbo.temp_LU_LicensedProduct') IS NOT NULL ~ DROP TABLE tempdb.dbo.temp_LU_LicensedProduct ~ $$<Configuration Manager Setup><01-21-2026 15:47:39.418-480><thread=4140 (0x102C)>
*** [24000][0][Microsoft][ODBC Driver 18 for SQL Server]无效的游标状态 $$<Configuration Manager Setup><01-21-2026 15:47:39.434-480><thread=4140 (0x102C)>
INFO: Executing SQL Server command: < IF OBJECT_ID('tempdb.dbo.temp_LU_LicensedProduct') IS NOT NULL ~ DROP TABLE tempdb.dbo.temp_LU_LicensedProduct ~> $$<Configuration Manager Setup><01-21-2026 15:47:39.448-480><thread=4140 (0x102C)>
ERROR: FAILED to import data to table LU_LicensedProduct $$<Configuration Manager Setup><01-21-2026 15:47:39.462-480><thread=4140 (0x102C)>
ERROR: Failed to import data from CSV files $$<Configuration Manager Setup><01-21-2026 15:47:39.474-480><thread=4140 (0x102C)>
ERROR: Failed to import Asset Intelligence data into the site database.~ $$<Configuration Manager Setup><01-21-2026 15:47:39.583-480><thread=4140 (0x102C)>
Not recovery mode or not top level site. Skip restoring client piloting packages. $$<Configuration Manager Setup><01-21-2026 15:47:39.616-480><thread=4140 (0x102C)>
~~===================== Completed Configuration Manager Server Setup ===================== $$<Configuration Manager Setup><01-21-2026 15:47:39.645-480><thread=4140 (0x102C)>