SAP HANA 直接連線 SQL Server 資料庫(Linux系統)
阿新 • • 發佈:2021-10-14
1、安裝ODBC
https://docs.microsoft.com/zh-tw/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-ver15#suse17
注意一下,最好是先安裝 msodbcsql
再安裝 msodbcsql17
我的是SUSE 12
sudo su zypper ar https://packages.microsoft.com/config/sles/12/prod.repo exit sudo ACCEPT_EULA=Y zypper install msodbcsql # optional: for bcp and sqlcmd sudo ACCEPT_EULA=Y zypper install mssql-tools echo 'export PATH="$PATH:/opt/mssql-tools/bin"' >> ~/.bashrc source ~/.bashrc # optional: for unixODBC development headers sudo zypper install unixODBC-devel
如果執行
zypper ref https://packages.microsoft.com/config/sles/12/prod.repo
出現
Repository named 'packages-microsoft-com-prod' already exists. Please use another alias.
可以先刪除,
zypper rr packages-microsoft-com-prod
找了一圈,主要是通過下面的網頁, 建立成功的
https://launchpad.support.sap.com/#/notes/1644499
https://www.cnblogs.com/StephenAmell/p/13473524.html