无法从Visual Studio连接到SQL Server 2016
我想从Visual Studio中的C#连接到SQL Server 2016数据库。我不断收到以下错误:以下无法从Visual Studio连接到SQL Server 2016
Unable to add data connection. Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.sfc, Version=12.0.0.0, Culture=neutral, PublicKeyToken='89845dcd8080cc91' or one of it's dependencies. The System Cannot find the file specified.
我下载并安装(2016年版本):
ENU\x64\SharedManagementObjects.msi
和
DB2OLEDBV5_x64.msi
在这个线程建议:Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0 但我仍然收到错误。
编辑:我使用Visual Studio 2015年。我试图通过服务器资源管理器的连接“连接到数据库”选项卡
的Visual Studio 2015年需要ENU\x64\SharedManagementObjects.msi
下载2014年版本的SQL Server 2014功能包,其中包含2014版本,你应该很好。
Microsoft®SQLServer®上2014功能包
https://www.microsoft.com/en-us/download/details.aspx?id=42295
工作。谢谢! –
到底是如何尝试连接从Visual Studio到MSSQL?我的意思是,你想通过服务器资源管理器或SQL Server对象资源管理器连接吗?你是否试图本地或远程连接到MSSQL?什么是Visual Studio的版本?请提供更多信息。 – kimbaudi
谢谢。我用你要求的信息编辑了原始问题。 –