> ## 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.

# Redash

> このページではRedash をConnect AI の仮想SQL Server API に接続する手順の概要を示します。

## 前提条件

接続する前にまず以下を実行します。

* データソースをConnect AI アカウントに接続します。詳しくは、[Sources](/ja/Sources) を参照してください。
* [Settings](/ja/Settings#personal-access-tokens) ページでPersonal Access Token (PAT) を生成します。PAT をコピーし、認証時にパスワードとして使用します。

## Connect AI に接続する

Redash からConnect AI の仮想SQL Server API へのコネクションを確立するには以下の手順に従います。

<Steps>
  <Step>
    Log in to Redash.
  </Step>

  <Step>
    Click the settings widget on the top right.
  </Step>

  <Step>
    Click **New Data Source**.
  </Step>

  <Step>
    Select **Microsoft SQL Server** as the Data Source Type.
  </Step>

  <Step>
    On the configuration tab, set the following properties:

    * **Database Name**: 接続したいConnect AI データソースのConnection Name を入力します。例：*Salesforce1*
    * **Server**: enter the virtual SQL Server host name (*tds.cdata.com*)
    * **User**: Connect AI のユーザー名を入力します。ユーザー名は、Connect AI の画面の右上に表示されています。例：*[test@cdata.co.jp](mailto:test@cdata.co.jp)*
    * **Password**: [Settings](/ja/Settings#personal-access-tokens) ページで生成したPAT を入力します。
    * **Port**: enter *14333*
  </Step>

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

  <Step>
    Click **Test Connection** to ensure that the connection is configured properly.
  </Step>
</Steps>
