Overview
You will learn
- How to install the SAP HANA client
- The two locations where SAP HANA client installs can be downloaded from
Prerequisites
- A Microsoft Windows, Mac, or Linux machine
Steps
Intro
The tutorials cover Windows, macOS, and Linux. Where commands differ by operating system, OS-conditional content is provided. The tutorial platform automatically displays the instructions that match the reader’s selected operating system.
On Windows, this tutorial uses Command Prompt commands unless otherwise noted.
The SAP HANA client provides a set of utilities and drivers to connect to and query a SAP HANA database from multiple programming APIs, such as Node.js, Python or Java as shown below.

For a complete list, see SAP HANA Client Interface Programming Reference.
For a list of newly added features, see New and Changed Features in the SAP HANA Client or the release notes.
The SAP HANA client can be used to connect to different versions of SAP HANA. For example, a 2.30.x client can connect to SAP HANA Cloud or SAP HANA 2.0. For more information, see SAP HANA Client and SAP HANA Cloud Compatibility and SAP HANA client and server cross-version compatibility.
Download the client installer for your platform (Microsoft Windows, Linux, or Mac) from the SAP Development Tools website under the HANA tab and the SAP HANA Client 2.0 section.
An alternate location to download the client installer (SAP Software Center) is described in step 3 which includes the SAP Common Crypto library and additional platforms such as Windows 32-bit and AIX. SAP Software Center also may contain newer versions and patches before they are available on the SAP Development Tools site.

Client download Access the contents of the downloaded install.
- Start the graphical installer
hdbsetupor use the command line installerhdbinst.
Set the install directory to C:\SAP\hdbclient on Microsoft Windows or to users/your_user/sap/hdbclient on Linux or macOS and complete the installation.

If the install fails, try running the installer with administrator privilege (i.e. On Microsoft Windows, right-click on
hdbsetup.exeand choose Run as an administrator).
If an older version is already installed, it can be upgraded or it can be uninstalled by running
hdbuninstfrom the folder where the client is installed. For example,c:\sap\hdbclient\install\hdbuninst
- After the installation process is completed, verify that the required environment variables have been configured.
On SUSE Linux, if
picois not installed, install it with:Shellsudo zypper install pico
In the
hdbclientfolder, notice that files such ashdbsqland the client database drivers are available.
Post installation Run the following command in a newly opened shell to verify the installation succeeded and the path is correct.
Shellhdbsql -v
Version of HDBSQL
The install from SAP Development Tools does not contain the SAP Cryptographic Library. This can be seen by examining the C:\SAP\hdbclient\manifest file.
The SAP Cryptographic Library is only required when client-side data encryption is used, for LDAP Authentication, or for cases where a preference is to use the SAP Common Crypto Library over the libraries provided by the OS. For more information, see the following:
Another download location is the SAP Software Center, which requires signing in before downloading. SAP Software Center provides the very latest version of the SAP HANA client as well as additional platforms such as 32-bit Windows and AIX. Versions of the SAP HANA client downloaded from here include the SAP Common Crypto Library.
For additional details on supported platforms, see SAP Note 3165810 - SAP HANA Client Supported Platforms and SAP Note 2938939 - SAP HANA Client Legacy Platforms.
Select Support Packages & Patches, By Alphabetical Index, and H.

SAP for Me Download Software Then choose either HANA Cloud Clients, HANA Cloud Clients 1.0, SAP HANA Client 2.0 or SAP HANA Platform Edition, SAP HANA Platform Edition 2.0, SAP HANA Client 2.0. Download the software.
If you have a license for SAP HANA Cloud, follow the instructions at Download and Install the SAP HANA Client.
If you have a license for an on-premise version of SAP HANA, follow the instructions provided at Install the SAP HANA Client on Microsoft Windows.
The downloaded software is the same regardless of which one is used.

SAP Software Downloads Extract the software using SAPCAR.
The downloaded file is a
.sarfile and the utility SAPCAR is needed to extract it. SAPCAR can also be downloaded from SAP Software Center. Select the latest available version such as SAPCAR 7.54.The command to extract a
.sarfile is shown below. The command options are extract, verbose and file. Make sure the.sarfile you want to extract is in the same directory as the SAPCAR executable.
Install the software as shown in sub-step 3 of Install from SAP Development Tools.
For further information on SAPCAR or if you are having troubles using it, see SAP HANA, SAPCAR, and macOS.
Congratulations! You now have the SAP HANA client installed.
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.

