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

# AppSheet

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

## 前提条件

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

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

## Connect AI に接続する

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

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

  <Step>
    In the top navigation bar, select **My account**.
  </Step>

  <Step>
    On the **Sources** tab, select **New Data Source**.

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/appsheet_newsource.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=c9a7686bf6595032bef81ef94c49e26d" alt="" width="673" height="343" data-path="ja/images/appsheet_newsource.png" />
    </Frame>
  </Step>

  <Step>
    In the data source list, select **Cloud Database**.

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/appsheet_sourcelist.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=b37dc42e1842908a1ab708534e9f8d35" alt="" width="474" height="1193" data-path="ja/images/appsheet_sourcelist.png" />
    </Frame>
  </Step>

  <Step>
    Enter the connection settings.

    * **Type**—select **SQLServer**.
    * **Server**—enter the Virtual SQL Server endpoint and port separated by a comma: *tds.cdata.com*,*14333*
    * **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 を入力します。
    * **SSL**—set to **Require SSL**.

    <Frame>
      <img src="https://mintcdn.com/cdata/0o_7a3Hya0sbnsUJ/ja/images/appsheet_connectiondetails.png?fit=max&auto=format&n=0o_7a3Hya0sbnsUJ&q=85&s=6fdee82a4fede87bd02d276cef7e078a" alt="" width="478" height="827" data-path="ja/images/appsheet_connectiondetails.png" />
    </Frame>
  </Step>

  <Step>
    Click **Test** to test your entered credentials. If you receive an error, check all fields and try again.
  </Step>

  <Step>
    Click **Authorize Access** to create the connection.
  </Step>
</Steps>

After you create your data source, it appears on the Account Sources list. When creating an app in AppSheet, you can select tables from your connection as the source of data.
