Prerequisites for Connecting via Virtual SQL Server API
Before you connect via Virtual SQL Server API, you must first do the following:- Connect a data source to your Connect AI account. See Sources for more information.
- Generate a Personal Access Token (PAT) on the Settings page. Copy this down, as it acts as your password during authentication.
Connect to Connect AI via Virtual SQL Server API
To establish a connection from MicroStrategy to the Connect AI Virtual SQL Server API, follow these steps.Set the connection properties.

- Database—select SQL Server
- Version—select SQL Server 2017
- Server Name—enter tds.cdata.com
- Port Number—enter 14333
- Database Name—enter the Connection Name of the Connect AI data source you want to connect to (for example, Salesforce1).
- User—enter your Connect AI username. This is displayed in the top-right corner of the Connect AI interface. For example, test@cdata.com.
- Password—enter the PAT you generated on the Settings page.
- Data Source Name—enter a name for the data source
Edit the SQL column retrieval query to include
TABLE_SCHEMA = '#?Schema_Name?#' in the WHERE clause. The complete query is below.Select the new data source and select the Namespace that corresponds to your virtual database (like SharePoint1).

Prerequisites for Connecting via OData Endpoint
Before you connect to Connect AI via the OData endpoint, you must first do the following:- Connect a data source to your Connect AI account. See Sources for more information.
- Create a Workspace. Later, you will use the OData Service URL on that page (https://cloud.cdata.com/api/odata/{workspace\_name}) with the relevant workspace name to establish the connection.
- Generate a Personal Access Token (PAT) on the Settings page. Copy this down, as it acts as your password during authentication.
Connect to Connect AI via OData Endpoint
To connect to Connect AI using the OData protocol, follow these steps.In the Data from URL dialog, set the connection properties.
- In the text box, paste the OData URL copied from the Endpoints dialog of your workspace. The URL is in the following format: https://cloud.cdata.com/api/odata/{workspace\_name}.
- Select OData from the drop-down list.





