SAP HANA ODBC driver configuration

1. SAP_HANA_CLIENT_32 official website to download or SAP_HANA_CLIENT_64, first extract, double hdbsetup.exe installation (32 to install the test, if the installation is not available 64)

2. Turn on the computer search, odbc input, select the data source 32 odbc

It should be note, some computers display a default is only odbc data source, you need to see this self-odbc data source is a 32-bit or 64-bit.

32-bit and 64-bit data source catalog odbc

C:\Windows\System32\odbcad32.exe

C:\Windows\SysWOW64\odbcad32.exe

Open odbc data source, click Add

Select the driver installation

Enter the data source name, service address and port; ip: port; then click the Connect button to enter the next step;

HANA input C set user name and password, click on the OK button

See the following interface will appear, the configuration was successful.

 

Configuring a database connection string, DSN is the data source name that you just configured, uid and pwd are HANA C set of account and password.

 

<add name="SBOConnectionString" connectionString="dsn=HANA;uid=SYSTEM;pwd=!QAZ2wsx" providerName="System.Data.Odbc" />

Hana direct write sql statement query a database table in code, you need to add the database name in front of the table name.

Guess you like

Origin www.cnblogs.com/lovesheng1212/p/11038834.html