Ready to get started?

Learn more about the CData ODBC Driver for WooCommerce or download a free trial:

Download Now

Connect to WooCommerce Data in DBArtisan

Use wizards in DBArtisan to configure WooCommerce data as a data source.

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

Integrate WooCommerce 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.

WooCommerce supports the following authentication methods: one-legged OAuth1.0 Authentication and standard OAuth2.0 Authentication.

Connecting using one-legged OAuth 1.0 Authentication

Specify the following properties (NOTE: the below credentials are generated from &service; settings page and should not be confused with the credentials generated by using WordPress OAuth2.0 plugin):

  • ConsumerKey
  • ConsumerSecret

Connecting using WordPress OAuth 2.0 Authentication

After having configured the plugin, you may connect to WooCommerce by providing the following connection properties:

  • OAuthClientId
  • OAuthClientSecret
  • CallbackURL
  • InitiateOAuth - Set this to either GETANDREFRESH or REFRESH

In either case, you will need to set the Url property to the URL of the WooCommerce instance.

You can then follow the steps below to register WooCommerce 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 WooCommerce data. WooCommerce entities are displayed in the Datasource Explorer.

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