Connect to Salesforce CRM Analytics Data in DBArtisan
The CData ODBC Driver for Salesforce CRM Analytics seamlessly integrates Salesforce CRM Analytics data into database management tools like DBArtisan by enabling you to access Salesforce CRM Analytics data as a database. This article shows how to create an data source for Salesforce CRM Analytics in DBArtisan and execute queries. You can then edit data visually and execute standard SQL.
Integrate Salesforce CRM Analytics 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.
Salesforce CRM Analytics uses the OAuth 2 authentication standard. Obtain the OAuthClientId and OAuthClientSecret by registering an app with Salesforce CRM Analytics.
See the Getting Started section of the Help documentation for an authentication guide.
Multi-Factor Authentication (MFA)
If the connected Salesforce org has MFA enforcement enabled, set MFACode to the time-based one-time passcode (TOTP) generated by your authenticator app (such as Salesforce Authenticator or Google Authenticator). MFACode applies alongside the standard OAuth flow.
You can then follow the steps below to register Salesforce CRM Analytics data as a database instance in your project:
- In DBArtisan, click Data Source -> Register Datasource.
- Select Generic ODBC.
- Enter a name for the data source and select the DSN.
- Finish the wizard to connect to Salesforce CRM Analytics data. Salesforce CRM Analytics entities are displayed in the Datasource Explorer.
You can now work with Salesforce CRM Analytics data as you work with any other database. See the driver help documentation for more information on the queries supported by the Salesforce CRM Analytics API.