Connect to Strava Data in DBArtisan

Jerod Johnson
Jerod Johnson
Director, Technology Evangelism
Use wizards in DBArtisan to configure Strava data as a data source.

The CData ODBC Driver for Strava seamlessly integrates Strava data into database management tools like DBArtisan by enabling you to access Strava data as a database. This article shows how to create an data source for Strava in DBArtisan and execute queries. You can then edit data visually and execute standard SQL.

Integrate Strava Data into DBArtisan Projects

If you have not already, first specify connection properties in an ODBC DSN (data source name). This is the last step of the driver installation. You can use the Microsoft ODBC Data Source Administrator to create and configure ODBC DSNs.

To authenticate to Strava, and connect to your own data or to allow other users to connect to their data, you can use the OAuth standard.

Using OAuth Authentication

You must create a custom OAuth application to connect to Strava. To create a custom OAuth application:

  1. Log into the Strava API Settings page
  2. Create a new application or select an existing application
  3. Set the "Authorization Callback Domain" to your callback URL domain (e.g. localhost)
  4. Note down the Client ID and Client Secret

After setting the following connection properties, you are ready to connect:

  • AuthScheme: Set this to OAuth.
  • InitiateOAuth: Set this to GETANDREFRESH. You can use InitiateOAuth to manage the process to obtain the OAuthAccessToken.
  • OAuthClientId: Set this to the Client ID from your Strava API application.
  • OAuthClientSecret: Set this to the Client Secret from your Strava API application.
  • CallbackURL: Set this to the redirect URI matching your application's callback domain.

Example connection string:

Profile=C:\profiles\Strava.apip;AuthScheme=OAuth;InitiateOAuth=GETANDREFRESH;OAuthClientId=your_client_id;OAuthClientSecret=your_client_secret;CallbackURL=http://localhost:33333;

You can then follow the steps below to register Strava data as a database instance in your project:

  1. In DBArtisan, click Data Source -> Register Datasource.
  2. Select Generic ODBC.
  3. Enter a name for the data source and select the DSN.
  4. Finish the wizard to connect to Strava data. Strava entities are displayed in the Datasource Explorer.

You can now work with Strava data as you work with any other database. See the driver help documentation for more information on the queries supported by the Strava API.

Ready to get started?

Connect to live data from Strava with the API Driver

Connect to Strava