我从@ImanMahmoudinasab 提到的链接下载了“ Microsoft System CLR Types for Microsoft SQL Server 2012”和“ Microsoft SQL Server 2012 Shared Management Objects”,但是共享管理对象在安装时出现了问题,它显示了一些依赖信息,最后安装失败!
Symptom:
无法加载这个子系统:
Microsoft.SqlServer.management.sdk.sfc version 12.0.0.0
在这一点上,您可能会像我一样感到困惑: 您使用的是 SQL Server 2012,而 VS 2015试图使用的是来自 SQL Server 2014的版本12.0.0.0。
事实证明,在安装 SQLServer2012时,它将从 SQLServer2014安装两个组件。有一次,我从计算机中删除了 SQLServer 的所有跟踪(使用 Add Programs 控制面板)。当我重新安装 SQLServer2012时,它要么没有重新安装2014年的组件,要么我再次删除了它们,以为我第一次就错过了它们。
The result was that I didn't have the necessary 2014 libraries on my system. I also tried to install the 2014 Shared Management Objects as pointed out above, but that didn't work because I didn't have the CLR runtime from 2014. So in order to get a VS 2015 system working with a SQL Server 2012, you have to make sure that these two 2014 packages are installed: