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

# Tableau Cloud

> This page outlines the steps to connect Tableau Cloud to the Connect AI Virtual SQL Server API.

## Prerequisites

Before you connect, you must first do the following:

* Connect a data source to your Connect AI account. See [Connections](https://docs.cloud.cdata.com/en/Sources.md) for more information.
* Generate a Personal Access Token (PAT) on the [Settings](https://docs.cloud.cdata.com/en/Settings/Personal-Access-Tokens.md) page. Copy this down, as it acts as your password during authentication.
* If you want to connect to a virtual schema rather than a data source, first [Add a virtual schema](https://docs.cloud.cdata.com/en/Virtual-Schemas.md#add-a-virtual-schema) to Virtual Schemas.

## Connect to Connect AI

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

**Step 1**

Log in to Tableau Cloud.

**Step 2**

On the **Home** tab, click **New** > **Workbook**.

![Tableau Cloud New Connection](https://mintcdn.com/cdata/L-wC-3th9ZUn-60n/en/images/tableau_cloud_newconnection.png?fit=max\&auto=format\&n=L-wC-3th9ZUn-60n\&q=85\&s=9fea5afe70d114fb158ca67f2f3901bd)

**Step 3**

On the **Connect to Data** dialog, select the **Connectors** tab. In the connectors list, select **Microsoft SQL Server**.

![Tableau Cloud Select Source](https://mintcdn.com/cdata/L-wC-3th9ZUn-60n/en/images/tableau_cloud_selectsource.png?fit=max\&auto=format\&n=L-wC-3th9ZUn-60n\&q=85\&s=80902ebff82d77fb402f2a34d921e116)

**Step 4**

Enter the connection settings.

* **Server**—enter the Virtual SQL Server endpoint and port separated by a comma: *tds.cdata.com*,*14333*
* **Database**—enter the Connection Name of the Connect AI data source you want to connect to (for example, *Salesforce1*).
* **Authentication**—leave this as username and password.
* **Username**—enter your Connect AI username. This is displayed in the top-right corner of the Connect AI interface. For example, *[test@cdata.com](mailto:test@cdata.com)*.
* **Password**—enter the PAT you generated on the [Settings](https://docs.cloud.cdata.com/en/Settings/Personal-Access-Tokens.md) page.
* **Require SSL**—leave this selected.

**Step 5**

Click **Sign In**.

**Step 6**

Once the connection succeeds, your data is available to use in your workbook. Follow these steps to access it:

**Step 7**

In the **Connections** section of the data pane to the left of the workbook, select your connection.

**Step 8**

In the **Database** section of the data pane, select the data source that you want to use. The tables for that data source populate in the **Table** section.

**Step 9**

Drag your tables into the workbook space or perform queries as needed.

## Modify a Connection

You can modify your connection by following these steps:

**Step 1**

In your workbook, click the drop-down arrow next to your connection in the **Connections** section.

**Step 2**

Select **Edit Connection**.

![Tableau Cloud Edit Connection](https://mintcdn.com/cdata/L-wC-3th9ZUn-60n/en/images/tableau_cloud_editconnection.png?fit=max\&auto=format\&n=L-wC-3th9ZUn-60n\&q=85\&s=d811f1dc564f07f8c451b0c910cd0851)

**Step 3**

Edit your connection details and click **Sign In** when you are finished.

## Connect to a Virtual Schema

To connect Tableau Cloud to a specific [virtual schema](https://docs.cloud.cdata.com/en/Virtual-Schemas.md) in Connect AI, you specify the virtual schema name after the Connect AI username in the format of `[your_email_address]@[virtual_schema_name]`:

![Tableau Cloud Virtual Schema](https://mintcdn.com/cdata/L-wC-3th9ZUn-60n/en/images/tableau_cloud_workspace.png?fit=max\&auto=format\&n=L-wC-3th9ZUn-60n\&q=85\&s=f83d944cba4c0d5985f50178f527c898)

You can copy the **Username** from the **Virtual SQL Server** tab of the **Endpoints** dialog for your virtual schema and paste it in the Tableau Cloud **Username** field.

![Tableau Cloud Endpoints](https://mintcdn.com/cdata/L-wC-3th9ZUn-60n/en/images/tableau_cloud_endpoints.png?fit=max\&auto=format\&n=L-wC-3th9ZUn-60n\&q=85\&s=f51684cd1c7fac35b32872a60bde9e26)

## Learn More

For more information about Tableau Cloud, please see the [Tableau Cloud help pages](https://help.tableau.com/current/online/en-us/tableau-online-home.htm).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.