How to point External Tables in Dedicated SQL Pool to Storage Secondary End Point ?

PS 396 Reputation points
2023-07-10T12:02:44.7333333+00:00

All,

What is the procedure to point external tables in the Dedicated SQL Pool to the container secondary endpoint, in case of a disaster recovery scenario when a pool is restored in the secondary region? Which method can be used for this task? Your guidance on this issue would be much appreciated.

Additional information:

  • The technologies involved are Dedicated SQL Pool and External Tables.
  • The desired outcome is to point the external tables to the Container Secondary Endpoint in case of a disaster recovery scenario.

Thank you!

Azure SQL Database
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.
4,917 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 89,386 Reputation points Microsoft Employee
    2023-07-11T09:16:09.9833333+00:00

    @PS - Thanks for the question and using MS Q&A platform.

    To point external tables in a Dedicated SQL Pool to the container secondary endpoint in case of a disaster recovery scenario, you can use the ALTER EXTERNAL DATA SOURCE statement to modify the endpoint URL.

    Here's an example of how to do this:

    Connect to the Dedicated SQL Pool using SQL Server Management Studio or Azure Data Studio.

    Run the following command to view the current external data source configuration:

    SELECT * FROM sys.external_data_sources;
    

    This will display a list of external data sources, including the endpoint URL.

    Run the following command to modify the endpoint URL to the container secondary endpoint:

    ALTER EXTERNAL DATA SOURCE <data-source-name>
    WITH (LOCATION = '<container-secondary-endpoint-url>');
    

    Replace <data-source-name> with the name of the external data source, and <container-secondary-endpoint-url> with the URL of the container secondary endpoint.

    Verify that the external data source has been updated by running the following command:

    SELECT * FROM sys.external_data_sources;
    

    This should display the updated external data source configuration.

    Note that you may need to update the endpoint URL for each external table that uses the external data source. You can do this by running the ALTER EXTERNAL TABLE statement with the new data source name.

    Also, keep in mind that the container secondary endpoint must be accessible from the Dedicated SQL Pool in the secondary region. If the endpoint is not accessible, you may need to update your network configuration or use a different disaster recovery strategy.

    Hope this helps. Do let us know if you 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.


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.