
- #Sap hana odbc how to
- #Sap hana odbc install
- #Sap hana odbc driver
/usr/local/etc/.odbcinst.ini -> this file contains information about installed ODBC driver software.The brew-formula installs unixODBC without any GUI, so we’re left with text-config files: To make things work, there are two main configuration files that need to be edited.
#Sap hana odbc install
In order to use ODBC on my Mac I use the unixODBC package that is available via brew: > brew install unixodbc I don’t know what set up the person who send me the question uses, but before I write “ it works just the same as in the blog post” I rather try it out myself. Now, it has been a while for me that I last played with R/RStudio and HANA and that was based on my old SAP laptop running MS Windows.Ĭurrently, I use my trusty old 2015 MacBook Pro 13″, which means that some things look and feel different from what I showed in the old blog post. This last bit is what the question was about.
#Sap hana odbc how to
Unfortunately, this blog post only shows how to generally set up an ODBC connection in RStudio to use with HANA, but explicitly not how the hdbuserstore gets used. There is a blog post that explains the use of the library.
the mentioned R library hana.ml.r is a library that is provided with the SAP client software and works as an interface to the machine learning features of HANA for R. That means the ODBC topic from above applies here. It allows accessing many different databases and supports both ODBC and JDBC. RStudio is a graphical UI and development environment for the R programming language and probably one of the most important tools for data scientists today. To indicate that the HANA ODBC driver should use the hdbuserstore key, a has to be put in front of the KEYname. To use it with an ODBC connection, I showed in the old blog post, that all one has to do is to create the hdbuserstore entry and then put it into the ODBC DSN (Data Source Name) definition where the ServerName goes. this HANA specific credential store can also be used with ODBC and JDBC connections. With the stored credentials users can logon to HANA databases without ever having to type in the host, port, username or password. This feature allows us to store login credentials for HANA databases in the local users’ profile (it’s a set of files in the file system of the user SSFS_HDB.KEY and SSFS_HDB_DAT). the referenced blog post is about an SAP HANA client feature called User Store ( hdbuserstore). If you don’t want to read through the whole sleuth story but jump right to the solution, see the Quick solution recipe-box below The question was this…Ĭan you share the syntax to use the hdbuserstore key from RStudio? At this time I am looking to use the key to open a ODBC connection using ConnectionContext from hana.ml.r.” unnamed LinkedIn user
One of the benefits of answering questions from users is that there usually is a pretty good chance that I will learn something along the way.