摘要:今天,我们可以安装数据库。操作系统为Windows Server 2012标准版本,并安装了SQLSERVER2008R2。运行安装程序,会出现以下提示,因为两者之间存在兼容性问题。请先忽略此问题,然后单击以运行程序,而无需获得帮助。正确的方法:方法1:需要操作系统的ISO文件方法2:使用windowsupdate需要网络参考:安装。net3.5onserver2012(不带磁盘):确保服务器未查找WSUS服务器更新确保代理服务器/防火墙将允许从服务器查询到Windows更新服务的连接从命令行运行:disk exe/online/ennable feature/featurename:NetFX3/all源交换机的删除是一个目的,这将强制服务器查找其所属的SxS文件夹,并转到Windows Update以获取文件。http://stackoverflow.com/questions/23631675/install-net-3-5-framework-on-windows-server-2012-without-dvd如果您直接使用上述命令,您将始终在66.6处等待。您需要打开以下选项:由于无法找到客户的安装文件,您最终可以选择方法2来解决问题。
背景
今天帮可以安装数据库。操作系统是windows server 2012 标准版, 安装SQL SERVER 2008R2 。
运行安装程序,提示如下
这是因为两者之间存在兼容性问题. 先忽略这个问题,点运行程序而不获取帮助。
然后出现报错:
我一看,这是缺少.net 3.5 。立马想到在服务管理器添加.net 3.5.
一安装,又发生报错:
安装 .net 3.5 出错安装一个或多个角色,角色服务或功能失败 找不到源文件
分析
问题的原因是标准版为了节约空间 把3.5 给移除掉了
可以使用命令查看:Get-WindowsFeature *Framework* 确认是否是被移除了
解决办法
直接COPY一个.net 3.5的安装文件,居然无法解决。
正确方法:
方法1:
要求必须有操作系统的ISO 文件
方法2:使用windows update 需要联网
参考:
To install the .net 3.5 on server 2012 without the disk (or disk image):
Ensure that the server is NOT looking at a WSUS server for updates (must be looking at Windows Update for this to work)
Ensure that any proxy/firewall will allow the connection from the server in question to the Windows update service
From a command line run:
dism.exe /online /enable-feature /featurename:NetFX3 /all
The elimination of the source switch is done on purpose as this will force the server to look within its own SxS folder, not find the needed files, and then go to Windows Update for the files (hence step 1 where it is not pointing to a WSUS server).
直接用上面的命令,会一直在66.6的时候等待,需要把下面的选项打开:
由于客户的安装文件已经找不到,最后选择方法2 ,问题解决。
建议使用WINDOWS 2008 R2安装SQL SERVER 2008 R2,更简便.
补充说明:
SERVER 2012 中安装SQL SREVER 08 R2 就需要至少SP1
注:此文章为原创,欢迎转载,请在文章页面明显位置给出此文链接!
若您觉得这篇文章还不错请点击下右下角的推荐,非常感谢!