@Rosy Ray - Thanks for the question and using MS Q&A platform.
It sounds like you are experiencing an issue connecting to your SQL Database from an Azure Synapse notebook. The error message indicates that the IP address of the client running the notebook is not allowed to access the SQL Database due to a firewall rule.
To resolve this issue, you can add the IP address of the client running the notebook to the firewall rules for your SQL Database. Here are the steps to do this:
- Go to the Azure portal and navigate to your SQL Database.
- Under Security => Click on Networking
- Click on "Add client IP" to add the IP address of the client running the notebook to the firewall rules.
- If you need to add a range of IP addresses, you can click on "Add IP range" and enter the start and end IP addresses.
- Click "Save" to save the new firewall rule.
Once you have added the IP address or IP range to the firewall rules, you should be able to connect to your SQL Database from the Azure Synapse notebook without any issues.
If you are still experiencing issues connecting to your SQL Database, you may need to check the linked service configuration in your Azure Synapse notebook to ensure that it is configured correctly.
For more details, refer to Azure SQL Database and Azure Synapse IP firewall rules.
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.