解决安装SQL Server 2012 NetFx3 报错

本篇将介绍如何解决安装SQL Server 2012时发生NetFx3报错。

本教程适用于Windows Server 2012 和 Windows 8

在安装SQL Server 2012时如果发现以下报错:

The following error has occurred:
Error while enabling Windows feature: NetFx3, Error Code: -2146498298, Please try enabling
Windows feature: NetFx3 from Windows management tools and then run setup again. For more
information on how to enable Windows features, see http://go.microsoft.com/fwlink/?linkid=227143

这证明了.Net Framework 3.5没有在当前计算机安装,造成了SQL Server的一些功能不能正常运行

解决方案:

1. 在Server Feature中添加.Net Framework 3.5
添加功能或组件 >> .Net Framework 3.5

2. 如果安装失败,你需要将你的服务器连到互联网,然后将Windows 8 或者 Windows Server 2012安装盘放到光驱中,然后用管理员身份打开命令行,输入以下命令:

dism /online /enable-feature /featurename:NetFx3 /source:d:sourcessxs