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