SAP HANA and Visual Studio Community Data Source - c#

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)

Related

SQL database not connecting to Visual Studio 2015

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

I'm restricted to using framework 3.5 because I'm writting a SQL CLR for SQL Server 2008 R2

I'm restricted to using framework 3.5 because I'm writting a SQL CLR for SQL Server 2008 R2. Visual Studio 2013 uses Microsoft.TeamFoundation.Common fro framwork 4.5. Is there a Microsoft.TeamFoundation.Common for framework 3.5? If so, where can I find it?
The Team Foundation Server assemblies are bound to specific versions of Visual Studio (simply put). So you'll have to find a Visual Studio version that shipped with .NET 3.5 - Visual Studio 2010, i.e. TFS 2010. However, then you'll have to make sure that this TFS version is still compatible with the TFS Server you'll want to contact (or the TFS workspaces you'll want to work with).
Then, having arbitrary assemblies in SQL Server is also something you'll probably want to avoid.
Possibly, it would be better to have a standalone service, that uses whatever TFS assemblies you need, and have your SQL Server .NET code talk with that via HTTP, etc.
That way you can decouple the (.NET) versions.
Finally, it would be helpful if you tell us what you are actually trying to achieve.

AutoCAD Vault Connectivity c#

I had created a project to access the properties of SheetSet and as well as AutoCAD Vault functionalites including Checkin to Server, CheckOut from server and all. It was developed using C# based on AutoCAD 2012 .dll files. And tested using AutoDesk Vault 2012 server. It worked fine, But the same code, i.e the same .exe file is not working with AutoDesk Vault 2015 server. Even the log In into the server is not happening.But normal accessing of SheetSet properties is working good, without any problem.
Now, It keepon saying as credentials problems., I'm pretty sure it's not the actual problem.
My Question is:
1. "Is the code differs based on the AutoCAD version..?".
2. "If it is, Is there any possibility to write code once, and access for all kinds of versions..?".
Please do the needful, any help would be appreciateable., Thanks.
Vault 2012 clients are not compatible with Vault 2015 server (http://justonesandzeros.typepad.com/blog/2014/03/whats-new-in-the-vault-2015-sdk.html).
You have to change references, update some portions of code, update the .NET framework version (4.5 for Vault 2015) and recompile.
Finally I found my answer.
From AutoDesk 2013 product, they are following new kind of pattern.
So older version before 2012 are not compatible. But newer versions from 2013 to 2015, it supports compatibility (using a set of 5 or 6 dll files).

Export SQL Server to SQL Server Compact 4.0 with VS Express

I have created a C# application that connects to a Microsoft SQL Server Express Edition (64-bit) database. However, I want to transition the project from SQL Server to a local database and convert the .mdf file to a .sdf file.
The best solution I have found is SQL Server Compact Toolbox written by ErikEJ also pointed out by this post. When attempting to install the add-in to Visual Studio I receive an error:
This extension is not installable on any currently installed products.
even though the installer recognizes that Microsoft Visual Studio Express 2012 for Windows Desktop is installed. I believe this is only targeted for Professional and above.
I have also attempted to use the standalone tool. However, the option I want is grayed out and it's for version 3.5 instead of the current version 4.0.
I have also looked at trying to export/convert from Microsoft SQL Server Management Studio 11.0.3128.0. However, I have had no luck.
Is there a solution for VS Express Edition, or am I out of luck?
Just use the standalone edition for SQL Server Compact 4.0, available here: https://sqlcetoolbox.codeplex.com/releases/view/104096

how to fix visual studio warning

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...

Categories

Resources