> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.cdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Alteryx

> This page outlines the steps that are required to use Alteryx with Connect AI. These instructions include Alteryx Desktop and Alteryx Cloud editions.

## Prerequisites

Before you connect, you must first do the following:

* Connect a data source to your Connect AI account. See [Sources](/ja/Sources) for more information.
* Generate a Personal Access Token (PAT) on the [Settings](/ja/Settings#personal-access-tokens) page. Copy this down, as it acts as your password during authentication.
* If you are connecting to Connect AI using Alteryx Desktop, you must have the Microsoft ODBC Driver for SQL Server installed. Click [here](https://go.microsoft.com/fwlink/?linkid=2280794) for the download.

## Connect to Connect AI from Alteryx Desktop

To establish a connection from Alteryx Desktop to the Connect AI Virtual SQL Server API, follow these steps.

<Steps>
  <Step>
    Set up an account in Alteryx.
  </Step>

  <Step>
    Drag and drop a new Input Data tool onto the workflow.

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/alteryx_client_drag_input.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=8229f2e59237254ff8ffca5c85f427d5" alt="Alteryx Drag Input" width="1370" height="864" data-path="ja/images/alteryx_client_drag_input.png" />
    </Frame>
  </Step>

  <Step>
    While the Input Data tool is selected, click **Set Up a Connection** in the navigation pane. A **Data connections** dialog appears.
  </Step>

  <Step>
    Click **Data sources**. Select **Microsoft SQL Server > \*\*Quick connect**.

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/alteryx_client_sql_server_connect.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=9a223acafe041a62041023c67a0c1581" alt="Alteryx SQL Server Connect" width="1303" height="250" data-path="ja/images/alteryx_client_sql_server_connect.png" />
    </Frame>
  </Step>

  <Step>
    In the **Connection Manager** dialog, click **New**.
  </Step>

  <Step>
    In the **New Data Source** dialog, enter the following information:

    * **Data Source Name**—*Microsoft SQL Server ODBC DSN-less*.
    * **Driver**—select **ODBC Driver 18 for SQL Server** from the drop-down list.
    * **Server**—*tds.cdata.com*,*14333*
    * **Database**—接続したいConnect AI データソースのConnection Name を入力します。例：*Salesforce1*

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/alteryx_client_new_data.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=36b80c220534d2cd9f0cc7a9a3cd6aba" alt="Alteryx New Data" width="1212" height="431" data-path="ja/images/alteryx_client_new_data.png" />
    </Frame>
  </Step>

  <Step>
    Click **Save**. Then click **Connect Credential**.
  </Step>

  <Step>
    In **Connections**, enter the following:

    * **Authentication Method**—select **Username and password**.
    * **Credential**—select **Create New Credential**.
    * **Credential Name**—enter a name to identify the credential.
    * **Username**—Connect AI のユーザー名を入力します。ユーザー名は、Connect AI の画面の右上に表示されています。例：*[test@cdata.co.jp](mailto:test@cdata.co.jp)*
    * **Password**—[Settings](/ja/Settings#personal-access-tokens) ページで生成したPAT を入力します。
  </Step>

  <Step>
    Click **Test Connection**. If successful, click **Create and link**.
  </Step>

  <Step>
    **Connect** with your credentials.
  </Step>

  <Step>
    In the wizard that opens, drag and drop the table to be queried in the **Query Builder box**. Select the fields by checking the boxes that you want to include in your query. Where possible, the complex queries generated by the filters and aggregations will be pushed down to your data source, while any unsupported operations (which can include SQL functions and JOIN operations) will be managed client-side by the CData SQL engine embedded in the connector.

    <Frame>
      <img src="https://mintcdn.com/cdata/YITfVTwoqsOOaiRq/ja/images/odbc-alteryx-06.png?fit=max&auto=format&n=YITfVTwoqsOOaiRq&q=85&s=903e8a14a949b445dc18b3af4a5fe86a" alt="Alteryx Query Builder" width="647" height="634" data-path="ja/images/odbc-alteryx-06.png" />
    </Frame>
  </Step>

  <Step>
    To further customize the dataset, you can open the SQL Editor and modify the query manually, adding clauses, aggregations, and other operations to ensure that you are retrieving exactly the data desired.

    <Frame>
      <img src="https://mintcdn.com/cdata/YITfVTwoqsOOaiRq/ja/images/odbc-alteryx-07.png?fit=max&auto=format&n=YITfVTwoqsOOaiRq&q=85&s=d7f3e67379f8cd85acf1f0c9ef2af7cb" alt="Alteryx SQL Editor" width="641" height="622" data-path="ja/images/odbc-alteryx-07.png" />
    </Frame>
  </Step>

  <Step>
    With the query defined, you are ready to work with your data in Alteryx Designer.

    <Frame>
      <img src="https://mintcdn.com/cdata/YITfVTwoqsOOaiRq/ja/images/odbc-alteryx-08.png?fit=max&auto=format&n=YITfVTwoqsOOaiRq&q=85&s=2bf804a6554d104d45500b3886f78a0c" alt="Alteryx Designer" width="1136" height="641" data-path="ja/images/odbc-alteryx-08.png" />
    </Frame>
  </Step>
</Steps>

## Connect to Connect AI from Alteryx Cloud

To establish a connection from Alteryx Cloud to the Connect AI Virtual SQL Server API, follow these steps.

<Steps>
  <Step>
    Sign in to your Alteryx Cloud account.
  </Step>

  <Step>
    Click **Create Connection**.
  </Step>

  <Step>
    Search for *Microsoft SQL Server* and the click the data source. A **Create Connection** dialog appears.

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/alteryx_client_create_connection.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=d9d1d4fc31a0c135d5c87074ea8de4a9" alt="Alteryx Create Connection" width="1125" height="1034" data-path="ja/images/alteryx_client_create_connection.png" />
    </Frame>
  </Step>

  <Step>
    Enter the following information:

    * **Connection Name**—the name of your data connection for display purposes.
    * **Host**—*tds.cdata.com*
    * **Port**—*14333*
    * **Username**—Connect AI のユーザー名を入力します。ユーザー名は、Connect AI の画面の右上に表示されています。例：*[test@cdata.co.jp](mailto:test@cdata.co.jp)*
    * **Password**—[Settings](/ja/Settings#personal-access-tokens) ページで生成したPAT を入力します。
  </Step>

  <Step>
    Click **Test Connection** to test.
  </Step>

  <Step>
    Click **Create** to save your successful connection.
  </Step>

  <Step>
    In the **Connections** screen, click **Browse Data**. You can now work with the connected data.

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/alteryx_client_connection_list.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=f03069a56520a4d914b00be3a7d6e5a5" alt="Alteryx Connection List" width="1415" height="275" data-path="ja/images/alteryx_client_connection_list.png" />
    </Frame>
  </Step>
</Steps>
