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

# Looker

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

## 前提条件

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

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

## Connect AI に接続する

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

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

  <Step>
    In the navigation pane, select **Admin**. Under the **Database** category, select **Connections**.
  </Step>

  <Step>
    On the **Connections** page, click **Add Connection**.
  </Step>

  <Step>
    Enter the connection settings:

    * **Name**—the name for the connection in models.
    * **Dialect**—select *Microsoft SQL Server 2017+*.
    * **SSH Server**—leave this disabled.
    * **Remote Host:Port**—enter *tds.cdata.com* in the first field and *14333* in the second field.
    * **Database**—接続したいConnect AI データソースのConnection Name を入力します。例：*Salesforce1*
    * **Username**—Connect AI のユーザー名を入力します。ユーザー名は、Connect AI の画面の右上に表示されています。例：*[test@cdata.co.jp](mailto:test@cdata.co.jp)*
    * **Password**—[Settings](/ja/Settings#personal-access-tokens) ページで生成したPAT を入力します。
      Leave the rest of the connection settings at their default values unless you need to modify them.
  </Step>

  <Step>
    At the bottom of the page, click **Test These Settings** to ensure that you can connect to Connect AI.
  </Step>

  <Step>
    Click **Add Connection** to create the connection and return to the **Connections** page.
  </Step>
</Steps>

Your connection is now available for use in Looker. To connect to additional data sources from your Connect AI account, repeat the setup steps above, changing the value for **Database** for each data source.
