# How to Connect to SAP Hana?

**URL:** <https://forum.knime.com/t/how-to-connect-to-sap-hana/19828>\
**Category:** KNIME Analytics Platform\
**Created:** [December 3, 2019, 10:26pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828 "2019-12-03T22:26:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![etorres](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@etorres](https://forum.knime.com/u/etorres)\
**Post date:** [December 3, 2019, 10:26pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/1 "2019-12-03T22:26:50Z")

</div>

Hi there,

Does anyone know how to connect to SAP HANA? I tried going to the extensions page and was not able to find it. I looked at the Database Connector, but I am not seeing the JDBC connection or Driver. Does anyone have the drive and can share it with me? If no, any step by step guide to get this to work?

I looked at my SAP installation and I do not see the driver under the installation folder. I also installed dBeaver to try to get the drivers from there, but was unable to unpack the .JAR file.

I’d appreciate the help.

Thank you!

---

<div class="post-metadata">

**Author:** ![AlexanderFillbrunn](https://forum-cdn.knime.com/user_avatar/forum.knime.com/alexanderfillbrunn/32/357_2.png) [@AlexanderFillbrunn](https://forum.knime.com/u/AlexanderFillbrunn)\
**Post date:** [December 4, 2019, 8:36am UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/2 "2019-12-04T08:36:11Z")

</div>

Hi @etorres,  
welcome to the KNIME Forum! According to the [SAP documentation](https://help.sap.com/viewer/0eec0d68141541d1b07893a39944924e/2.0.03/en-US/ff15928cf5594d78b841fbbe649f04b4.html) the driver is part of the HANA Client installation. It should be named “ngdbc.jar”. Once you get the Jar file, you can register it in the KNIME preferences under KNIME -\> Databases.  
Kind regards  
Alexander

---

<div class="post-metadata">

**Author:** ![etorres](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@etorres](https://forum.knime.com/u/etorres)\
**Post date:** [December 4, 2019, 4:40pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/3 "2019-12-04T16:40:03Z")

</div>

Hi Alexander,

Thank you for your reply. I was not able to find the ngdbc.jar on my computer, but was able to download the driver from DBeaver; however, I found the “ngdbc-2.4.64.jar” file. Not sure if this is the same. If not, any chance anyone can share the driver?

Using the suggested steps, I followed them using the driver I found and was not able to see that connection. See screenshots.

> [@AlexanderFillbrunn](#):
>
> ngdbc.jar

 ![Connection](https://forum-cdn.knime.com/uploads/default/original/2X/f/f9c09a987fba13156c7f1f5d241e7c469ed589ba.png) ![DB%20Connector](https://forum-cdn.knime.com/uploads/default/original/2X/6/68f0f4f8675e0ef2487fc9d1491400994082fc4a.png)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [December 4, 2019, 4:48pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/4 "2019-12-04T16:48:29Z")

</div>

Hi there @etorres,

welcome to KNIME Community!

Here is a topic where you have nice explanation and steps how to connect to SAP Hana.

> [@SAP HANA Connection KNIME](https://forum.knime.com/t/sap-hana-connection-knime/14343):
>
> Good morning everyone, I have created and finalized my ML models and I even created a script to automatically run the jobs on a schedule. One thing that I have left and I can’t seem to figure out is my data. I am currently running a Python script that connects to HANA and pulls data from there for my model to train and test on ( eventually to generate a prediction ). I have tried using the generic database connector and I have added HANA drivers (.JAR) files but nothing is working and I am no…

Additionally I see you mentioned Database Connector node. What KNIME version are you using?

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![etorres](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@etorres](https://forum.knime.com/u/etorres)\
**Post date:** [December 4, 2019, 5:34pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/5 "2019-12-04T17:34:24Z")

</div>

Hi there,

Please see attached. Current version (Oct 2019). ![KNIME](https://forum-cdn.knime.com/uploads/default/original/2X/1/1ec24f8beb876e155a70be1b0054725bc18cf301.png)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [December 5, 2019, 11:42am UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/6 "2019-12-05T11:42:19Z")

</div>

Hi @etorres,

then I suggest to use [DB Connector](https://kni.me/n/0oD8015Fv-UmISSY) node (that is the one from new DB framework) and follow steps from topic I linked.

If any questions/problems feel free to ask 🙂

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![etorres](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@etorres](https://forum.knime.com/u/etorres)\
**Post date:** [December 5, 2019, 4:21pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/7 "2019-12-05T16:21:38Z")

</div>

any chance you have the drivers handy? The drivers I have are not being picked up even with that DB Connector.

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [December 6, 2019, 11:34am UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/8 "2019-12-06T11:34:58Z")

</div>

Hi there @etorres,

don’t have driver and not sure if that driver is the right one. You can attach it here and I will give it a try.

You did restart KNIME after adding driver?

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![etorres](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@etorres](https://forum.knime.com/u/etorres)\
**Post date:** [December 6, 2019, 5:05pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/9 "2019-12-06T17:05:02Z")

</div>

Hi @ipazin,

Thanks for your help! Attached is the driver.

[ngdbc.zip](https://forum-cdn.knime.com/uploads/default/original/2X/5/5533d425896d930c4c989a642637f18130bf5dde.zip) (1.1 MB)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [December 6, 2019, 10:14pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/10 "2019-12-06T22:14:00Z")

</div>

Hi @etorres,

driver works on my computer. After clicking Add from Databases page under Preferences, adding a driver and clicking Find driver classes I get following.

 ![SAP_Hana](https://forum-cdn.knime.com/uploads/default/original/2X/f/fe17c1c19c07fe7a412ce901e6ce45b1f85d0f59.png)

Then I populated ID and Name, successfully added driver after which I could see it in DB Connector node. Restart was not necessary.

After/If you preformed same steps and still don’t see your driver you can check your log file (_…\knime-workspace.metadata\knime\knime.log_) for additional info. Also you can share it here if no sensitive information in it and someone will take a look. Otherwise (if there is sensitive information in it) I will send you a PM where you can respond attaching your log file.

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![etorres](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/e/e8c25b/32.png) [@etorres](https://forum.knime.com/u/etorres)\
**Post date:** [December 9, 2019, 4:46pm UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/11 "2019-12-09T16:46:24Z")

</div>

Hi @ipazin,

Thank you so much for the instructions. I was able to find the driver. However, I don’t mean to sound ignorant, but want to clarify the ID, Name, Description and URL Template would be information coming from Hana or is this simply a naming convention.

Again,

Thank you so much for your help. This is the first time setting up a driver for me.

 ![KNIME%20Screenshot](https://forum-cdn.knime.com/uploads/default/original/2X/a/a832cf55ef48a464e07e39c3f4e918f230de6807.png)

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [December 10, 2019, 7:56am UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/12 "2019-12-10T07:56:45Z")

</div>

Hi there @etorres,

glad you made it! Regarding ID, Name and other information take a look at this [paragraph](https://docs.knime.com/2019-12/db_extension_guide/index.html#register_jdbc) in database documentation. It is very well explained. Probably I should have shared link to documentation earlier 🙂

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 9, 2020, 7:02am UTC](https://forum.knime.com/t/how-to-connect-to-sap-hana/19828/14 "2020-07-09T07:02:38Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
