When We refer the Microsoft Official document to connect with SAP hana using Power BI desktop,
https://docs.microsoft.com/en-us/power-bi/desktop-sap-hana
I found we need to download a SAP HANA CLIENT for Windows computers first. But the official document didnot provide the most accurate link.see below for the direct link.
2, Download the SAP Client software(Need registration)
3,The issue encountered when install SAP hana Client
下载后的文件如下:
Extract 后如下,点击hdbsetup 进行安装
Cannot install
Cannot install Microsoft C/C++ Runtime
Starting external program C:\Users\syluo\Desktop\SAP BW\5 Power BI with SAP Hana\rclient120_win64\client\msdev2015_vcredist_x64.exe
Command line is: "C:\Users\syluo\Desktop\SAP BW\5 Power BI with SAP Hana\rclient120_win64\client\msdev2015_vcredist_x64.exe" /q
Program terminated with exit code 1638
第一次Google 后的结果是说,没有Microsoft visual C++ Redistribution, 于是下载了最新的redist 安装包, ,安装后还是继续报上面的错误,再一次google, 参考如下文章说是The server already has Visual C++ 2017 installed.
https://apps.support.sap.com/sap/support/knowledge/preview/en/2710293
Error 1638 means another version of the product is already installed as mentioned by Aaron Stebner on the following thread:
http://blogs.msdn.com/b/astebner/archive/2006/08/23/715755.aspx?PageIndex=3#comments
于是果断在Control panel 里删掉了新安装的Microsoft Visual C++ 2013, 2015
然后换一种SAP hana 的安装方式,这个时候很快(1min)安装成功。
SAP hana Client 安装成功后,从Power BI desktop端选择SAP hana database 时 界面是这样的:
没安装SAP hana client 之前界面是这样的: