MicroStrategy
MicroStrategy
This page outlines the steps to connect MicroStrategy to CData Connect Cloud. You can use either CData Connect Cloud Virtual SQL Server API or the CData Connect Cloud OData endpoint to connect. Note that the Virtual SQL Server API performs better for large datasets, while OData performs well with smaller datasets.
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 CData Connect Cloud account. See Connections for more information.
- Generate a Personal Access Token (PAT) on the Settings page. Copy this down, as it acts as your password during authentication.
Connecting to CData Connect Cloud via Virtual SQL Server API
To establish a connection from MicroStrategy to the CData Connect Cloud Virtual SQL Server API, follow these steps.
-
Log in to MicroStrategy.
-
Click Add External Data > Databases.
-
Set the Import Option to Select Tables.
-
In the Import from Tables wizard, click “+” to add a new data source.
-
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—接続したいCData Connect Cloud データソースのConnection Name を入力します。例:Salesforce1
- User—CData Connect Cloud のユーザー名を入力します。ユーザー名は、CData Connect Cloud の画面の右上に表示されています。例:test@cdata.co.jp
- Password—Settings ページで生成したPAT を入力します。
- Data Source Name—enter a name for the data source
-
Click Save.
-
Right-click on the new data source and choose Edit Catalog Options.
-
Edit the SQL column retrieval query to include
TABLE_SCHEMA = '#?Schema_Name?#'
in the WHERE clause. The complete query is below.SELECT DISTINCT TABLE_SCHEMA NAME_SPACE, TABLE_NAME TAB_NAME, COLUMN_NAME COL_NAME, (CASE WHEN (DATA_TYPE LIKE '%char' AND (CHARACTER_SET_NAME='utf8' OR CHARACTER_SET_NAME='usc2')) THEN CONCAT('a',DATA_TYPE) ELSE DATA_TYPE END) DATA_TYPE, CHARACTER_MAXIMUM_LENGTH DATA_LEN, NUMERIC_PRECISION DATA_PREC, NUMERIC_SCALE DATA_SCALE FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME IN (#TABLE_LIST#) AND TABLE_SCHEMA='#?Schema_Name?#' ORDER BY 1,2,3
-
Click Apply > OK.
-
Select the new data source and select the Namespace that corresponds to your virtual database (like SharePoint1).
-
Drag tables into the pane to insert them.
-
Click Finish and choose the option to connect live.
-
Click Create Dossier.
-
You can now create a new visualization of your connected data.
Prerequisites for Connecting via OData Endpoint
Before you connect to CData Connect Cloud via the OData endpoint, you must first do the following:
- Connect a data source to your CData Connect Cloud account. See Connections for more information.
- Create a virtual dataset 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. See Virtual Datasets for more information.
- Generate a Personal Access Token (PAT) on the Settings page. Copy this down, as it acts as your password during authentication.
Connecting to CData Connect Cloud via OData Endpoint
To connect to CData Connect Cloud using the OData protocol, follow these steps.
-
Log in to MicroStrategy.
-
Click Add Data.
-
In Data Sources, select Data from URL.
-
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.
-
Click Add to add the new connector.
-
Click Prepare Data to see a preview of your data.
-
Click Finish when you are done adding your connector(s).
-
You can now create a new visualization of your connected data.