Configuring DSN on Windows
A data source name (DSN) connection enables SAP Cloud Integration for data services to connect to a Google BigQuery named project and dataset.
Before you configure a DSN for Google BigQuery, download and install the Simba ODBC driver for Google BigQuery.
Perform the following steps to configure a DSN for Windows:
- Select the Windows Start icon, then search for and open the ODBC Data Source Administrator.
- Open either the User DSN or System DSN tab as applicable and select Add.
-
Select Simba ODBC Driver for Google BigQuery and select Finish.
The ODBC Data Source Administrator opens the Simba ODBC Driver for Google BigQuery DSN Setup dialog box.
- Enter a unique name in Data Source Name and optionally enter text for Description.
-
Select the applicable authentication from the OAuth Mechanism dropdown list: Service Authentication
or User Authentication.
The type of OAuth mechanism you select determines the authentication options to complete. Use the information in the following tables for option descriptions based on the authentication that you select.
User Authentication Option
Description
User Authentication
ODBC driver authenticates as a user through a Google user account.
Sign In
Opens a sign-in dialog for Google BigQuery. Sign into your Google BigQuery account to obtain a confirmation code.
Confirmation Code
Code that you obtain from Google when you sign in. SAP Cloud Integration for data services uses the code to generate a refresh token.
NoteYou can use the confirmation code once. Obtain a new confirmation code when you need another refresh token. However, when you save the refresh token in the DSN configuration, the driver can use the same refresh token each time you use this DSN to access the account.
Refresh Token
Google BigQuery requires a token to access a user account. The driver uses the refresh token each time it accesses your Google user account.
After you paste the code into Confirmation Code, perform one of the following actions:Select the Refresh Token text box.
Select Tab to move your cursor from Confirmation Code to Refresh Token.
The driver automatically populates the field with a refresh token.NoteIn place of a refresh token, you can choose to save the token to a .json key file and save the file locally. For complete information about using a .json key file instead of a refresh token, see the Simba ODBC driver documentation.
Service Authentication Option
Description
Service Authentication
ODBC driver authenticates as a service through a Google service account.
Email
Obtain your service account e-mail ID from your Google account.
Key File Path
Enter the path and file name of the saved key file.
Generate a Google service account private key from your Google account and save the file locally as either a JSON or P12 file type.
-
Select the version number from the Minimum TLS Version dropdown list.
Google BigQuery requires TLS. SAP Cloud Integration for data services supports only TLS version 1.2.
-
Specify the Trust Store CA certificate file to use.
To use the Windows Trust Store for the CA Certificates, select Use System Trust Store.
To use the .pem file that is installed with the Simba ODBC driver for Google BigQUery, accept the default address in Trusted Certificates.
To use your system Trust Store, enter the full path to the trusted certificates .pem file on your system.
- Select the applicable Google BigQuery project name from the Catalog (Project) dropdown list.
- Select the data set from the Dataset dropdown list.
- Optional. If you use a proxy server connection, select Proxy Options and complete the options as applicable.
- Optional. Select Test.
- Select OK after the DSN tests successfully.
After you finish configuring the driver and creating a DSN, create a Google BigQuery ODBC datastore using the options for a DSN connection.