Query Azure Synapse Link for Dataverse data with serverless SQL pool
You can use the Azure Synapse Link to connect your Microsoft Dataverse data to Azure Synapse Analytics to explore your data and accelerate time to insight. This article shows you how to query your Dataverse data with built-in serverless SQL pool in your Azure Synapse Analytics workspace.
Note
Azure Synapse Link for Microsoft Dataverse was formerly known as Export to data lake. The service was renamed effective May 2021 and will continue to export data to Azure Data Lake as well as Azure Synapse Analytics.
Prerequisites
This section describes the prerequisites necessary to query your Dataverse data after using the Azure Synapse Link for Dataverse service.
Azure Synapse Link for Dataverse. This guide assumes that you have already exported data from Dataverse by using the Azure Synapse Link for Dataverse.
Storage Account Access. You must be granted one of the following roles for the storage account: Storage Blob Data Reader, Storage Blob Data Contributor, or Storage Blob Data Owner.
Synapse administrator. You must be granted the Synapse Administrator role access within Synapse studio.
Query your Dataverse data with serverless SQL pool
Note
Azure Synapse Link for Dataverse does not support the use of dedicated SQL pools at this time.
In Power Apps, select your desired Azure Synapse Link from the list, and then select Go to Azure Synapse workspace.
Expand Lake database, select your Dataverse container. Your exported tables are displayed under the Tables directory on the left sidebar.
Right-click the desired table and select New SQL script > Select TOP 100 rows.
Select Run. Your query results are displayed on the Results tab. Alternatively, you can edit the script to your needs.
Query multiple Dataverse databases with serverless SQL pool
Note
Querying multiple Dataverse databases requires that both Dataverse environments are in the same region.
Add another Azure Data Lake Storage Gen2 account as a Linked service to the same Azure Synapse Analytics workspace where the current link resides.
Follow the configuration steps to create a new Azure Synapse Link with the new Azure Synapse Analytics and Azure Data Lake combination.
Navigate to the shared Synapse workspace and expand Databases. Select one of the Dataverse containers. Your exported tables are displayed under the Tables directory on the left sidebar.
Right-click a table, and then select New SQL script > Select TOP 100 rows.
Edit the query to combine the two datasets. For instance, you can join the datasets based on a unique ID value.
Select Run. Your query results are displayed on the Results tab.