How to Use ODBC DSN to connect to an SAP HANA data source.
This article provides detailed steps on how to use an ODBC DSN to connect to an SAP HANA data source in Bold BI®.
Step 1: Download and install the SQL ODBC driver using the link: https://learn.microsoft.com/en-us/sql/connect/odbc/download-odbc-driver-for-sql-server?view=sql-server-ver16
Step 2: After installing the ODBC driver, use the link below to download and install the SAP HANA client (hanaclient) package:https://tools.eu1.hana.ondemand.com/#hanatools
Step 3: Once you have downloaded the SAP HANA client (hanaclient), extract the contents of the ZIP file. Then, open the hanaclient-2.21.26-windows-x64 folder and double-click the hdbsetup file to install the SAP HANA client locally.
Step 4: Once you have installed the SAP HANA client, open the ODBC Data Source Administrator. Navigate to the System DSN tab and click the Add button. You will see the SAP HANA driver (HDBODBC) listed there.
Step 5: Use the link below to access the SAP HANA Cloud trial page and create an SAP account using your email address. https://www.sap.com/india/products/technology-platform/hana/trial.html
Step 6: Once you’ve created your account, you can access your trial account using the link provided. https://account.hanatrial.ondemand.com/trial/#/home/trial
Step 7: You can view the created trial account on this page. Simply click on the trial account.
Step 8: In the left pane, click Boosters. Then find “Set Up SAP HANA Cloud Administration Tools” and click Start. This will automatically create a SAP HANA Cloud instance.
Click on “Navigate to Subaccount” tab.
Step 9: Now, Go to the “Instances and Subscriptions” tab then you can see the “SAP HANA Cloud” created under the “Plans” as “tools”. After that, click the button “Go to Application”. I twill open the SAP HANA Central UI interface
Step 10: Here, you can create the SAP HANA Instance by clicking the “Create Instance” button.
Step 11: Now, you will see two instance type options: 1) SAP HANA Database 2) Data Lake. Choose “SAP HANA Database”, then proceed to the next step.
Step 12: Once you’ve made your selection, click on ‘Next step’. Enter the instance name and password.
It will look like the image below; then click ‘Next step’.
Step 13: In the next step, select Allow All IP Addresses. Enable the Cloud Connector if required. Then click Next Step for the following tabs.
In the next tab, don’t check ‘Data Lake,’ and click ‘Review and Create’.
It will navigate to a new tab. Click the ‘Create Instance’ option on that page.
Step 14: After clicking Create Instance, the instance will be displayed as shown below. Click Actions and Copy SQL Endpoint option and copy the Host.
Step 15: Open the ODBC driver, navigate to the System DSN tab, and click the Add button. You will see the SAP HANA driver, HDBODBC, listed there.
After selecting the SAP HANA driver, click “Finish”. A configuration popup will appear.
Enter the Data Source Name and Host, then click the “OK” button in the ODBC
Step 16: Now, go to Bold BI and create an ODBC data source. On the connection page, enter the Data Source Name and for ODBC Connection Type, choose DSN.
In the DSN Name dropdown, select the created DSN.
Enter your username (DBADMIN) and your instance password, then enter the database name (SAPHANA). After that, click the “Connect” button.
You can view the SAP HANA Cloud database details using the Database Explorer. You can also create databases using your credentials.
Step 17: You can see the sample dashboard created successfully using SAP HANA with the help of ODBC connector
Note: If you need to start and stop the SAP HANA server. Click the three dots of the created instance name.
Additional References: