I have downloaded and installed Visual Studio 2015 Community (because it is being used in college professional version) and SQL Server 2016 Service Pack 3 with SQL Server Management Studio 18.
I have been trying to connect or create a new database connection and it is showing me the attached error
Could not load file or assembly 'Microsoft.SqlServer.Management.Sdk.Sfc, Version=12.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91' or one of its dependencies.
I have tried multiple solutions here and it took me a whole day and it's still not fixed.
I have downloaded all SQL Server features from feature pack found from here: https://www.microsoft.com/en-us/download/details.aspx?id=103444
Installed packages via nupkg still no success.
Also, I checked the C:/Program Data/assembly and it contained the Microsoft.SqlServer.Management.Sdk.Sfc version 13.0.0.0
while it gives the error of 12.0.0.0.
I need help!
PS: I had previously installed 2019 version but uninstalled it and all of it's components (I think all) is it the issue? if that is recommend something to solve this issue, I have a project to show on Monday.
Please try download and install Microsoft SQL Server System CLR Types and Microsoft SQL Server 2014 Shared Management Objects from :
https://www.microsoft.com/en-US/download/details.aspx?id=42295
In addition, which version of your Windows? If you are using Windows 10, SQL Server 2012 requires service pack 2 to make it compatible with Windows 10. Please download and install from below link.
http://www.microsoft.com/en-us/download/details.aspx?id=43351
Related
I am trying to connect to a SQL Server 2016 database from C# in Visual Studio. I keep getting the following error:
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.
I downloaded and installed (the 2016 versions) of the following:
ENU\x64\SharedManagementObjects.msi
and
DB2OLEDBV5_x64.msi
as suggested in this thread: Could not load file or assembly Microsoft.SqlServer.management.sdk.sfc version 11.0.0.0
but I am still getting the error.
Edit: I am using Visual Studio 2015. I am trying to connect via the Server Explorer's "Connect to Database" Tab
Visual Studio 2015 needs the 2014 version of ENU\x64\SharedManagementObjects.msi Download SQL Server 2014 Feature Pack, which contains the 2014 version, and you should be good.
Microsoft® SQL Server® 2014 Feature Pack
https://www.microsoft.com/en-us/download/details.aspx?id=42295
I downloaded SAP HANA CLIENT package and installed it according to documentation.
I am trying to add a connection to HANA database in Visual Studio Community however I am not able to choose Microsoft .NET Framework Data Provider for SAP HANA to create a data connection - there is no such option.
According to the documentation - client package works with VS 2010 and later.
After I installed client software I got the following message:
Installing HANA ADO.NET for Visual Studio 2010..... Succeeded.
So the problem is - I am not able to indicate proper Data Source for HANA database in VS Community and that is why I am not able to use Entity Framework to work with the database. Is it possible that VS Community does not support this Data Source?
Currently I am downloading VS 2010 Ultimate - but I don't wanna give up on Community.
[UPDATE 1]
I followed this article - http://blog.nwoolls.com/2012/07/25/registering-missing-data-providers-with-visual-studio-2012/ by Nathanial Woolls and after some modifications it worked for me and Visual Studio 2010 (on different host and clean installation of VS).
[UPDATE 2 + WORKAROUND]
Read my MS post if needed - here
Install VS2010 or Higher version.
Match OS bit version and Visual Studio bit version if both are same then installed respective SAP HANA client but if both bit version is mismatch then install 32 bit and 64 bit both version of SAP HANA client in you machine.
Check file is available accessible or not in reseptive folder location or not e.g (C:\Program Files\sap\hdbclient\libadonetHDB.dll,C:\Program Files\sap\hdbclient\libSQLDBCHDB)
I updated Visual Studio 2013 to 2015 and updated SQL Server (LocalDB) from version 2012 to 2014. Now when I want to publish my project to the web I get this error.
Web deployment task failed. The database platform service with type Microsoft.Data.Tools.Schema.Sql.Sql120DatabaseSchemaProvider is not valid. You must make sure the service is loaded, or you must provide the full type name of a valid database platform service.
I searched through the files in the project like sln and csproj files and set everything to the correct VS2015 (14.0) version.
The server where I publish is running SQL Server Web 2012, but I can't update that server just yet.
Can anyone help me? I don't know where to look to fix this. Thanks.
I am using VS 2013 with InstallShield Limited Edition Project.
Everything is working fine in development environment where I have created reference to System.Data.SqlServerCe.dll
After I generate .exe file and install my application it is unable to find reference for SQL Server CE 3.5 thus automatically gets reference for SQL Server CE 4.0 and gave an error.
Incompatible Database Version. If this was a compatible file, run repair. For other cases refer to documentation. [ Db version = 4000000,Requested version = 3505053,File name = \?\C:\Users\someuser\AppData\Local\testapp\testdb.sdf ]
I have tried going through "this" article on MSDN but I can't find any publish tab in properties of my project.
Furthermore I am deploying System.Data.SqlServerCe.dll and all 7 32bit version SQL Server CE 3.5 dlls with my setup.
sqlceca30.dll
sqlcecompact30.dll
sqlceer30en.dll
sqlceme30.dll
sqlceoledb30.dll
sqlceqp30.dll
sqlcese30.dll
No, the issue is that your database file is in 4.0 format. As you can see from the error message, the engine is trying to open a 3,5 file, but gets a 4,0 file instead. So your application is using the 3,5 engine.
The problem was when I was trying to deploy msi package using InstallShield it used different build setting(x64) than my current setting(x86) which was causing my application to get the reference of x64 Sql Server CE 4.0 files.
So it was fixed by changing setting of singleimage compiling option.
i have made a app in visual studio 2010 ultimate the problem i am facing is when i publish my app then it is genrating some warning which is this
Warning 1 One of the following items 'Microsoft .NET Framework 4 (x86 and x64)
, .NET Framework 3.5 SP1' is required by 'SQL Server 2008 Express',
but none were included. WindowsFormsApplication1
i know there is some problem which will i face as i seen my app it is working fine but some feature related to sql server it is not working. how can i fix this warning? i have gone through MSDN but there is no solution i got, i have unistalled visual studio and reinstalled it but the same problem i am facing
In Visual Studio go to Project.. Properties.. Publish. Click on Prerequisites. If you have installed the Client Profile then turn on the Client Profile and turn off then one that is not installed.
From this Microsoft® SQL Server® 2008 Express page;
Instructions
Step 1: Download and install Microsoft .Net Framework 3.5 SP1.
Step 2: Download and install Windows Installer 4.5.
Step 3: Download SQL Server 2008 Express by clicking the appropriate link later on this page. To start the installation immediately, click Run. To install SQL Server Express at a later time, click Save.
You need to download first .NET Framework 3.5 SP1 before using SQL Server 2008 Express.
You have to check on your Customer's PC if .net-Framework is in the required Version installed.
http://support.microsoft.com/kb/318785
Probably Service Pack 1 is missing...