Establishing a Connection
Configure a Connection Profile
From the CData ribbon, click Get Data and select From SAP HANA connection/s to launch the CData Query window. To setup a new connection, you will have to click the New SAP HANA Connection button. Here you can set the connection settings, test the connection, and save the connection profile.
Connecting to SAP HANA Cloud
Set the following to connect to data:- Server: Set this property to the name or network address of the SAP HANA database instance.
- Port: Set this to 443.
- UseSSL: Set this to True.
Connecting to SAP HANA On-Prem
Set the following to connect to data:
- Server: Set this property to the name or network address of the SAP HANA database instance.
- Port: The port of the server hosting the SAP HANA database.
Authenticating to SAP HANA
Once you have provided the connection details, set the following database credentials to authenticate to SAP HANA:
- User: The username provided for authentication with the SAP HANA database.
- Password: The password provided for authentication with the SAP HANA database.
Okta
Set the AuthScheme to Okta. The following connection properties are used to connect to Okta:
- User: Set this to the Okta user.
- Password: Set this to Okta password for the user.
- SSOProperties (optional): Set this to the OTP code that was sent to your device. This property should be used only when MFA is required for OKTA sign on.
The following SSOProperties are needed to authenticate to Okta:
- SSOLoginUrl: Set this to the OKTA's login URL.
- MFAType (optional): Set this to the multi-factor type. This property should be used only when MFA is required for OKTA sign on. This property accepts one of the following values:
- OKTAVerify
- SMS
- APIToken (optional): Set this to the API Token that the customer created from the Okta org. It should be used when authenticating a user via a trusted application or proxy that overrides OKTA client request context.
The following is an example connection string:
AuthScheme=OKTA;User=username;Password=password;Server=myserver;SSO Properties='SSOLoginUrl=https://cdata-okta.okta.com';
Connection Properties
The Connection properties describe the various options that can be used to establish a connection.
Managing Connections
After successfully authenticating to SAP HANA you will be able to customize the data you are importing. To learn more about this, see Managing Connections.
See Also
- Querying Data: Use the data selection wizard to pull data into a spreadsheet. You can also configure scheduled data refresh here.
- Using the Excel Add-In: Find other ways to interact with SAP HANA data, such as using the available CData Excel Functions.