SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Connect Using the SAP HANA .NET Interface

Create and debug a .NET application that connects to SAP HANA using the SAP HANA client.

Overview

🎓 beginner 15 min. SAP HANA CloudBeginnerSAP HANA Cloud SAP HANA DatabaseSAP HANASAP HANA Express Edition

You will learn

  • โœ”How to install the .NET SDK
  • โœ”How to create and debug a .NET application that queries an SAP HANA database

Prerequisites

Prerequisites

  • You have completed the first 3 tutorials in this mission.

Steps

Intro

.NET is a free and open-source software framework for Microsoft Windows, Linux and macOS operating systems and is the successor to the .NET Framework. .NET was previously known as .NET Core.


Step 1 Install the .NET SDK
โ€”

The first step is to check if you have the .NET SDK installed and what version it is. Enter the following command:

Shell
dotnet --version  

If the dotnet command is not recognized, it means that the .NET SDK has not been installed. If the SDK is installed, the command returns the currently installed version, such as 8.0.203.

If the .NET SDK is not installed, download it from Download .NET and run the installer on Microsoft Windows or Mac.

.NET Core SDK Install
.NET Core SDK Install

On Linux, follow the instructions for the appropriate Linux version such as Install the .NET SDK or the .NET Runtime on openSUSE.

In order for the shell to recognize that the .NET SDK is installed and for any dotnet commands in future steps to be recognized, a new shell window needs to be opened.

For further details on supported versions, see SAP Note 3165810 - SAP HANA Client Supported Platforms.

Step 2 Create a .NET application that queries an SAP HANA database
+
Step 3 Debug the application
+
Step 4 Knowledge check
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Install the .NET SDK 2. Create a .NET application that queries an SAP HANA database 3. Debug the application 4. Knowledge check

Learn more →