Jon*_*len 168 sql-server installation sql-server-2017
有关如何处理此错误的任何建议:
TITLE: Microsoft SQL Server 2017 Setup
------------------------------
The following error has occurred:
VS Shell installation has failed with exit code 1638.
For help, click: https://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=0x5B39C8B9%25401434%25403
------------------------------
BUTTONS:
OK
------------------------------
Run Code Online (Sandbox Code Playgroud)
这是一台正在运行的新笔记本电脑
我尝试卸载与 SQL Server 或 Visual Studio 相关的任何内容。
日志:[3500:3970][2017-11-03T16:25:20]e000:错误 0x80070666:安装较新版本时无法安装产品。
Detailed results:
Feature: Full-Text and Semantic Extractions for Search
Status: Failed
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: Microsoft Visual C++ 2015 Redistributable
Component error code: 1638
Component log file: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20171103_162358\VCRuntime140_x64_Cpu64_1.log
Error description: VS Shell installation has failed with exit code 1638.
Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=VCRuntime140_x64%40Install%400x1638
Feature: Database Engine Services
Status: Failed
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, and then try the setup process again.
Component name: Microsoft Visual C++ 2015 Redistributable
Component error code: 1638
Component log file: C:\Program Files\Microsoft SQL Server\140\Setup Bootstrap\Log\20171103_162358\VCRuntime140_x64_Cpu64_1.log
Error description: VS Shell installation has failed with exit code 1638.
Error help link: https://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=14.0.1000.169&EvtType=VCRuntime140_x64%40Install%400x1638
Run Code Online (Sandbox Code Playgroud)
小智 330
我在使用 SQL Server 2017 Developer 时也遇到了这个问题,而且对于 SQL Server 安装包人员来说,这似乎只是一个糟糕的计划。问题是 Visual Studio 2017 安装了 Microsoft Visual C++ 2017 Redistributable (x86) 和 (x64) 并且 SQL Server 安装尝试安装 Microsoft Visual C++ 2015 Redistributables,它不能,因为 SQL Server 安装不允许您安装较旧版本并安装较新版本。
这篇Microsoft 支持文章介绍了他们对问题的解释以及他们推荐的解决方法。
解决方案 1:先安装 SQL Server,然后再安装 Visual Studio 2017。
解决方案2(我所做的):
它们有点难找,所以这里是直接链接:
X64:https ://go.microsoft.com/fwlink/ ? LinkId = 746572
x86:https : //go.microsoft.com/fwlink/?LinkId=746571
注意:如果您根本没有安装 Microsoft Visual C++ 2017 Redistributable,只需从上述链接之一安装它,然后重试安装 SQL Server。它现在应该可以工作了。
安装 SQL Server 2017 的其他命名实例时,您可能需要重复这些步骤。
小智 11
我遇到了同样的问题,但我是从 SQL Server 2016 升级的。
我卸载了 Microsoft Visual C++ 2015 Redistributable,x86 和 x64,然后它成功升级。