We are proud to share our inclusion in the 2024 Gartner Magic Quadrant for Data Integration Tools. We believe this recognition reflects the differentiated business outcomes CData delivers to our customers.
Get the Report →Model Snowflake Data Using Azure Analysis Services
Leverage CData Connect Cloud to establish a connection between Azure Analysis Services and Snowflake, enabling the direct import of real-time Snowflake data.
Microsoft Azure Analysis Services (AAS) is a fully-managed platform-as-a-service (PaaS) offering that delivers enterprise-grade data models in the cloud. When combined with CData Connect Cloud, AAS facilitates immediate cloud-to-cloud access to Snowflake data for applications. This article outlines the process of connecting to Snowflake via Connect Cloud and importing Snowflake data into Visual Studio using an AAS extension.
CData Connect Cloud offers a seamless cloud-to-cloud interface tailored for Snowflake, enabling you to create live models of Snowflake data in Azure Analysis Services without the need to replicate data to a natively supported database. While constructing high-quality semantic data models for business reports and client applications, Azure Analysis Services formulates SQL queries to retrieve data. CData Connect Cloud is equipped with optimized data processing capabilities right from the start, directing all supported SQL operations, including filters and JOINs, directly to Snowflake. This leverages server-side processing for swift retrieval of the requested Snowflake data.
About Snowflake Data Integration
CData simplifies access and integration of live Snowflake data. Our customers leverage CData connectivity to:
- Reads and write Snowflake data quickly and efficiently.
- Dynamically obtain metadata for the specified Warehouse, Database, and Schema.
- Authenticate in a variety of ways, including OAuth, OKTA, Azure AD, Azure Managed Service Identity, PingFederate, private key, and more.
Many CData users use CData solutions to access Snowflake from their preferred tools and applications, and replicate data from their disparate systems into Snowflake for comprehensive warehousing and analytics.
For more information on integrating Snowflake with CData solutions, refer to our blog: https://www.cdata.com/blog/snowflake-integrations.
Getting Started
Prerequisites
Before you connect, you must first do the following:
- Connect a data source to your CData Connect Cloud account. Detailed steps are provided in the next section.
- Generate a Personal Access Token (PAT). Copy this down, as it acts as your password during authentication.
- Create a server in Azure Analysis Services to which you will deploy your data from CData Connect Cloud.
- Install and configure an On-Premise Gateway in your system. This will pull data from the source via CData Connect Cloud into the Azure Analysis Services project and deploy models to the server. Refer to the given link to find the detailed process.
Configure Snowflake Connectivity for AAS
Connectivity to Snowflake from Azure Analysis Services is made possible through CData Connect Cloud. To work with Snowflake data from Azure Analysis Services, we start by creating and configuring a Snowflake connection.
- Log into Connect Cloud, click Connections and click Add Connection
- Select "Snowflake" from the Add Connection panel
-
Enter the necessary authentication properties to connect to Snowflake.
To connect to Snowflake:
- Set User and Password to your Snowflake credentials and set the AuthScheme property to PASSWORD or OKTA.
- Set URL to the URL of the Snowflake instance (i.e.: https://myaccount.snowflakecomputing.com).
- Set Warehouse to the Snowflake warehouse.
- (Optional) Set Account to your Snowflake account if your URL does not conform to the format above.
- (Optional) Set Database and Schema to restrict the tables and views exposed.
See the Getting Started guide in the CData driver documentation for more information.
- Click Create & Test
- Navigate to the Permissions tab in the Add Snowflake Connection page and update the User-based permissions.
Add a Personal Access Token
If you are connecting from a service, application, platform, or framework that lacks support for OAuth authentication, you have the option to generate a Personal Access Token (PAT) for authentication purposes. It's advisable to follow best practices by creating a distinct PAT for each service to uphold access granularity.
- Click on your username at the top right of the Connect Cloud app and click User Profile.
- On the User Profile page, scroll down to the Personal Access Tokens section and click Create PAT.
- Give your PAT a name and click Create.
- The personal access token is only visible at creation, so be sure to copy it and store it securely for future use.
With the connection configured, you are ready to connect to Snowflake data from Visual Studio using Azure Analysis Services.
Connect to Snowflake in Visual Studio Using AAS
The steps below outline connecting to CData Connect Cloud from Azure Analysis Services to create a new Snowflake data source. You will need the Microsoft Analysis Services Project extension installed in Microsoft Visual Studio to continue.
- In Visual Studio, create a new project. Select Analysis Services Tabular Project. Click on Next.
- In the Configure your new project dialog box, enter a name for your project in the Project name field. Fill in the rest of the fields.
- Click on Create. The Tabular model designer dialog box opens. Select Workspace server and enter the address of your Azure Analysis Services server (for example, asazure://eastus.azure.windows.net/myAzureServer). Also, make sure to select the option SQL Server 2022 / Azure Analysis Services (1600) from the Compatibility level dropdown. Click on Test Connection to check if the connection details are correct. Click OK and sign in to your server.
- Now, click on OK to create the project. Your Visual Studio window should resemble the following screenshot:
- In the Tabular Model Explorer window of Visual Studio, right-click Data Sources and select Import From Data Source.
- In the Get Data window, select SQL Server database and click Connect. In the Server field, enter the Virtual SQL Server endpoint and the port separated by a comma: e.g., “tds.cdata.com, 14333”, and click on OK.
- Click on Database and enter the following information:
- User name: Enter your CData Connect Cloud username. This is displayed in the top-right corner of the CData Connect Cloud interface. For example, [email protected].
- Password: Enter the PAT you generated on the Settings page.
Click on Connect. If successful, the Navigator window will pop up.
- In the Navigator window, search and select the tables of your choice
- You should now see the Salesforce table populated with data in the preview section on the right panel.
- Click on Load to import the data.
Now that you have imported the Snowflake data into your data model, you are ready to deploy the project to Azure Analysis Services for use in business reports, client applications, and more.
Get CData Connect Cloud
To get live data access to 100+ SaaS, Big Data, and NoSQL sources directly from your cloud applications, try CData Connect Cloud today!