How to query tables on a Serverless SQL Pool joining tables from another Serverless SQL Pool?

Renato de Melo 125 Reputation points
2025-02-04T23:18:36.9433333+00:00

I need to query tables from two distinct Serverless SQL Pools. Each Serverless SQL Pool lives in a separated Synapse Workspace. Is there a way to do that ? I see the new Elastic Query which is in preview state. Is there any other option available?

One workaround is to create external tables pointing to different data-sources/location, but I will be have to duplicate the table entries between the two Serverless SQL Pools.

I appreciate comments. Thank you.

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
5,172 questions
0 comments No comments
{count} votes

Accepted answer
  1. Chandra Boorla 7,960 Reputation points Microsoft Vendor
    2025-02-05T07:54:57.3833333+00:00

    @Renato de Melo

    Greetings & Welcome to Microsoft Q&A forum! Thanks for posting your query!

    I need to query tables from two distinct Serverless SQL Pools. Each Serverless SQL Pool lives in a separated Synapse Workspace. Is there a way to do that ?

    Currently, querying tables across two distinct Serverless SQL Pools in separate Synapse Workspaces directly is not supported.

    I see the new Elastic Query which is in preview state.

    The Elastic Query feature you mentioned is in preview and primarily designed for Azure SQL Database, which may not directly apply to Serverless SQL Pools in Azure Synapse Analytics.

    One workaround is to create external tables pointing to different data-sources/location, but I will be have to duplicate the table entries between the two Serverless SQL Pools.

    As a workaround, creating external tables that point to different data sources is a viable option. However, this approach would require duplicating the table entries between the two Serverless SQL Pools, which may not be ideal.

    Is there any other option available?

    Alternative Approaches - You can query tables from two distinct Serverless SQL Pools in separate Synapse Workspaces by using Azure Data Lake Storage (ADLS) as a shared data source. Both Serverless SQL Pools can access the same underlying data files stored in ADLS. You can utilize external tables or the OPENROWSET function to query this shared data without duplicating the table entries.

    This approach allows you to avoid data duplication while enabling both Serverless SQL Pools to query the same data. Additionally, you can implement data movement workflows using Azure Data Factory or Synapse Pipelines to consolidate data into a single SQL Pool or central storage for analysis.

    Benefits of this approach

    Centralized Data Management - ADLS serves as a single source of truth for your data, making it easier to manage and maintain.

    Cost Efficiency - Reduces storage costs by avoiding data duplication.

    Flexibility - Both Serverless SQL Pools can query the same data, allowing for diverse analytical workloads without data silos.

    Scalability - ADLS can handle large volumes of data, making it suitable for big data scenarios.

    Please refer to the links provided below, as they might offer some insights that could help you address your question.

    I hope this information helps. Please do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.