Azure Analysis Services
Azure Analysis Services
This page outlines the steps to connect Azure Analysis Services 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 performance of Azure Analysis Services is much slower with an OData connection.
Prerequisites for Connecting via Virtual SQL Server API
Before you connect via Virtual SQL Server API, you must first do the following:
- Create a server in Azure Analysis Services to which you will deploy your data from CData Connect Cloud.
- An on-premises data gateway is required when one or more Azure Analysis Services servers in the same region connect to on-premises data sources. To install and configure an on-premises gateway to access data sources, refer to the Microsoft documentation: Install an On-Premises Gateway.
- 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 Azure Analysis Services to the CData Connect Cloud Virtual SQL Server API, follow these steps.
Note: These steps involve creating a tabular model project through Visual Studio and deploying the model to Azure Analysis Services. For further instructions on using Azure Analysis Services, please refer to Microsoft documentation.
Step 1: Preparing Visual Studio
-
Open Visual Studio. In the navigation bar, select Extensions > Manage Extensions.
-
In the search bar, enter Microsoft Analysis Services Projects 2022. When it appears in the list, click Download.
-
When the installer file finishes downloading, close Visual Studio and double-click the extension installation file to install it.
-
Follow the installation prompts. When the installation finishes, restart Visual Studio.
Step 2: Creating the Data Model Project
-
In Visual Studio, create a new project.
-
Select Analysis Services Tabular Project.
-
In Configure your new project, enter a name for your project in the Project name field.
-
Specify a location for the project files and set Framework to the latest available value.
-
Click Create. The Tabular model designer dialog opens.
-
Select Workspace server and enter the address of your Azure Analysis Services server (for example,
asazure://eastus.azure.windows.net/myAzureServer
). -
Set Compatibility Level to SQL Server 2022 / Azure Analysis Services (1600).
Note: The rest of this guide is written for this compatibility level. If you select a different compatibility level, the steps below may not apply, and you might encounter issues when connecting to your data.
-
Click Test Connection and sign in to your server.
-
Click OK to create the project. Your Visual Studio window should resemble the following screenshot:
Step 3: Importing Data
-
In Visual Studio, in Tabular model Explorer, right-click Data Sources and select Import From Data Source.
-
In Table Import Wizard, select SQL Server database and click Connect.
-
In the Server field, enter the Virtual SQL Server endpoint and port separated by a comma: tds.cdata.com,14333.
-
Click OK. In the new window, select Database.
-
Enter the following information:
- User name—CData Connect Cloud のユーザー名を入力します。ユーザー名は、CData Connect Cloud の画面の右上に表示されています。例:test@cdata.co.jp
-
Password—Settings ページで生成したPAT を入力します。
-
Click Connect. In the Navigator window that opens, select your desired data source and click OK.
-
Navigator refreshes and displays the tables in your data source. Select your tables and click Load.
Step 4: Deploying the Project
-
In Visual Studio, select Solution Explorer.
-
Right-click your project and select Deploy.
-
For more information about deploying data, please see this Microsoft help page.
-
For more information about on-premises data gateways, please see this Microsoft help page.
-
Once you deploy your data to Azure Analysis Services, you can use your data to create data models. For more information please see Azure Analysis Services documentation.
Prerequisites for Connecting via OData Endpoint
If you do not want to use a local gateway with Azure Analysis Services, you can use an OData endpoint to connect to CData Connect Cloud. However, the performance is slower than with a Virtual SQL Server connection.
- 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.
- 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.
-
After creating a project in Azure Analysis Services, right-click the data source option and select New Data Source.
-
Search for OData Feed.
-
In the OData feed dialog, enter the following URL: https://cloud.cdata.com/api/odata/{workspace_name}. Then click OK.
-
Next, enter Basic credentials. The User name is your CData Connect Cloud user name, and the Password is the PAT from the prerequisites.
-
Click Connect to test the new connection.
-
In the Navigator, select the desired table and click Load.
-
You can now view your data in the Navigator.