We are proud to share our inclusion in the 2024 Gartner Magic Quadrant for Data Integration Tools. We believe this recognition reflects the differentiated business outcomes CData delivers to our customers.
Get the Report →Connect to Sugar CRM Data in Aqua Data Studio
Access Sugar CRM data from tools in Aqua Data Studio such as the Visual Query Builder and the Table Data Editor.
The CData JDBC Driver for Sugar CRM integrates Sugar CRM data with wizards and analytics in IDEs like Aqua Data Studio. This article shows how to connect to Sugar CRM data through the connection manager and execute queries.
Create a JDBC Data Source
You can use the connection manager to define connection properties and save them in a new JDBC data source. The Sugar CRM data source can then be accessed from Aqua Data Studio tools.
- In Aqua Data Studio, select Register Server from the Servers menu.
- In the Register Server form, select the 'Generic - JDBC' connection.
- Enter the following JDBC connection properties:
- Name: Enter a name for the data source; for example, Sugar CRM.
- Driver Location: Click the Browse button and select the cdata.jdbc.sugarcrm.jar file, located in the lib subfolder of the installation directory.
- Driver: Enter the Driver's class name, cdata.jdbc.sugarcrm.SugarCRMDriver.
URL: Enter the JDBC URL, which starts with jdbc:sugarcrm: and is followed by a semicolon-separated list of connection properties.
The User and Password properties, under the Authentication section, must be set to valid SugarCRM user credentials. This will use the default OAuth token created to allow client logins. OAuthClientId and OAuthClientSecret are required if you do not wish to use the default OAuth token.
You can generate a new OAuth consumer key and consumer secret in Admin -> OAuth Keys. Set the OAuthClientId to the OAuth consumer key. Set the OAuthClientSecret to the consumer secret.
Additionally, specify the URL to the SugarCRM account.
Note that retrieving SugarCRM metadata can be expensive. It is advised that you store the metadata locally as described in the "Caching Metadata" chapter of the help documentation.
Built-in Connection String Designer
For assistance in constructing the JDBC URL, use the connection string designer built into the Sugar CRM JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.
java -jar cdata.jdbc.sugarcrm.jar
Fill in the connection properties and copy the connection string to the clipboard.
A typical JDBC URL is below:
jdbc:sugarcrm:User=MyUser;Password=MyPassword;URL=MySugarCRMAccountURL;CacheMetadata=True;
Query Sugar CRM Data
You can now query the tables exposed.
