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.

  1. In Power Apps, select your desired Azure Synapse Link from the list, and then select Go to Azure Synapse workspace.

    Go to workspace.

  2. Expand Lake database, select your Dataverse container. Your exported tables are displayed under the Tables directory on the left sidebar.

    Find tables in Synapse.

  3. Right-click the desired table and select New SQL script > Select TOP 100 rows.

    Select top rows.

  4. Select Run. Your query results are displayed on the Results tab. Alternatively, you can edit the script to your needs.

    Run query.

Query multiple Dataverse databases with serverless SQL pool

Note

Querying multiple Dataverse databases requires that both Dataverse environments are in the same region.

  1. Add another Azure Data Lake Storage Gen2 account as a Linked service to the same Azure Synapse Analytics workspace where the current link resides.

  2. Follow the configuration steps to create a new Azure Synapse Link with the new Azure Synapse Analytics and Azure Data Lake combination.

  3. 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.

  4. Right-click a table, and then select New SQL script > Select TOP 100 rows.

  5. Edit the query to combine the two datasets. For instance, you can join the datasets based on a unique ID value.

  6. Select Run. Your query results are displayed on the Results tab.

See also

Blog: Announcing Azure Synapse Link for Dataverse