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

> This page outlines the steps to connect Redash 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 [Sources](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.

## Connect to Connect AI

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

**Step 1**

Log in to Redash.

**Step 2**

Click the settings widget on the top right.

**Step 3**

Click **New Data Source**.

**Step 4**

Select **Microsoft SQL Server** as the Data Source Type.

**Step 5**

On the configuration tab, set the following properties:

* **Database Name**: enter the Connection Name of the Connect AI data source you want to connect to (for example, *Salesforce1*).
* **Server**: enter the virtual SQL Server host name (*tds.cdata.com*)
* **User**: 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.
* **Port**: enter *14333*

**Step 6**

Click **Create**.

**Step 7**

Click **Test Connection** to ensure that the connection is configured properly.


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