没想到在 Windows 10 上安装 SQL Server 2016 Express Edition 时会这么糟糕。我安装了 SQL Server 2014 和 SQL Server 2012,主要使用 SQL Server 2014。然后我想我应该升级并尝试安装 SQL服务器 2016。然后我收到此错误:
试图执行未经授权的操作错误。
尝试对此进行搜索,并且有关于修改注册表项权限的建议,因此我确实尝试修改了一些与 SQL Server 相关的注册表项的一些权限,但这没有任何区别。
然后我继续搜索,发现有人暗示这可能是版本冲突问题,所以我卸载了所有SQL Server 安装,包括 2016 版本(未成功安装)并重新开始。
现在两天多后,我仍然无法安装 SQL Server。
以下是详细日志中时间线与 Windows 事件日志错误中的时间线匹配的部分;无法粘贴整个详细日志,因为它太长了。
EDIT1:经过更多搜索,这是实际抛出的异常:
Exception type: Microsoft.SqlServer.Configuration.Sco.ScoException
(01) 2016-10-23 10:36:52 Slp: Message:
(01) 2016-10-23 10:36:52 Slp: Attempted to perform an unauthorized operation.
(01) 2016-10-23 10:36:52 Slp: HResult : 0x84bb0001
(01) 2016-10-23 10:36:52 Slp: FacilityCode : 1211 (4bb)
(01) 2016-10-23 10:36:52 Slp: ErrorCode : 1 (0001)
(01) 2016-10-23 10:36:52 Slp: Data:
(01) 2016-10-23 10:36:52 Slp: WatsonData = HKEY_LOCAL_MACHINE@SYSTEM\CurrentControlSet\Services\FltMgr
(01) 2016-10-23 10:36:52 Slp: DisableRetry = true
(01) 2016-10-23 10:36:52 Slp: HelpLink.EvtType = 0x48BB60BC@0xBB814387
(01) 2016-10-23 10:36:52 Slp: EMBResult = Cancel
(01) 2016-10-23 10:36:52 Slp: SQL.Setup.FailureCategory = ConfigurationFailure
(01) 2016-10-23 10:36:52 Slp: WatsonConfigActionData = INSTALL@CONFIGNONRC@SQL_ENGINE_CORE_INST
(01) 2016-10-23 10:36:52 Slp: WatsonExceptionFeatureIdsActionData = System.String[]
(01) 2016-10-23 10:36:52 Slp: Stack:
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String subkey, RegistryAccess requestedAccess)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlEngine.Globals.GetSqlRegistryKeyHKLM(ServiceContainer context, String key, String machineName, Boolean createIfNotFound)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlEngine.FilestreamUtils.SetFltMgrAttachWhenLoadedKey(ServiceContainer context)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlEngine.RsFxConfiguration.Install()
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlEngine.FilestreamConfiguration.Install()
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.SetupFilestream(EffectiveProperties properties)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.Install_ConfigNonRC_Prepare(EffectiveProperties properties)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlEngine.SqlEngineSetupPrivate.Install(ConfigActionTiming timing, Dictionary`2 actionData, PublicConfigurationBase spcb)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlConfigBase.PrivateConfigurationBase.Execute(ConfigActionScenario scenario, ConfigActionTiming timing, ConfigBaseAction action, Dictionary`2 actionData, PublicConfigurationBase spcbCurrent)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlConfigBase.SqlFeatureConfigBase.Execute(ConfigActionScenario scenario, ConfigActionTiming timing, ConfigBaseAction action, Dictionary`2 actionData, PublicConfigurationBase spcbCurrent)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.ExecuteAction(String actionId)
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.SqlConfigBase.SlpConfigAction.Execute(String actionId, TextWriter errorStream)
(01) 2016-10-23 10:36:52 Slp: Inner exception type: System.UnauthorizedAccessException
(01) 2016-10-23 10:36:52 Slp: Message:
(01) 2016-10-23 10:36:52 Slp: Attempted to perform an unauthorized operation.
(01) 2016-10-23 10:36:52 Slp: HResult : 0x80070005
(01) 2016-10-23 10:36:52 Slp: Stack:
(01) 2016-10-23 10:36:52 Slp: at Microsoft.SqlServer.Configuration.Sco.InternalRegistryKey.OpenSubKey(String subkey, RegistryAccess requestedAccess)