Table of contents

Adding connections to analytics projects (Watson Studio and Watson Knowledge Catalog)

You need to create a connection asset for a data source in an analytics project before you can load data to or from it. A connection asset contains the information necessary to establish a connection to a data source.

You can create a connection asset from a platform-level connection, or create a platform-level connection from a connection asset that you create in a project. For information about differences between creating connections at the service level or at the platform level, see Connecting to data sources.

You create connections to these types of data sources:

  • Platform-level connections
  • IBM Cloud services
  • Other cloud services
  • On-premises databases

See Supported data sources for a full list of data sources.

To create a new connection in a project:

  1. Click Add to project > Connection.
  2. If you want to use a platform-level connection, click the From platform tab.

  3. Choose a data source.
  4. Enter the connection information that is required for the data source. Typically, you need to provide information like the hostname, port number, username, and password.
  5. If the data source supports personal credentials, select Shared to enter credentials to make the data source and its credentials accessible to all collaborators in the project, or select Personal if you want each collaborator to provide their own credentials to use the data source. The default setting is Shared. The credentials type is set on the Administration > Account page by the account owner.
  6. Click Create. The connection appears on the Assets page. You can edit the connection by clicking the connection name on the Assets page.
  7. Add tables, files, or other types of data from the connection by creating a connected data asset.
  8. Optional. Convert the connection asset to a platform-level connection that can be accessed from any feature in Cloud Pak for Data:
    1. Locate the connection in the project’s Assets tab in the Data assets section.
    2. From the Actions menu (Actions icon), select Publish to catalog.
    3. Select Platform assets catalog and click Publish.
    4. You can confirm that the connection is added by going to Data > Platform connections.

Connections with personal credentials are marked with a key icon (the key symbol for private connections) on the Assets page and are locked. If you are authorized to access the connection, you can unlock it by entering your credentials the first time you select it. This is a one-time step that permanently unlocks the connection for you. After you have unlocked the connection, the key icon is no longer displayed. Connections with personal credentials are already unlocked if you created the connections yourself.

Watch this video to see how to create a connection and add connected data to a project.

This video provides a visual method as an alternative to following the written steps in this documentation.

Next steps

Add data from this connection:

Learn more

Connecting to data sources

Parent topic: Adding data to a project