Any documentation mentioning connectivity from Azure SQL database connectivity to Azure Databricks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Any documentation available to connect from the Azure SQL database to Azure Databricks SQL workspace. We created a SQL warehouse personal access token for a user in a different team who can connect from his on-prem SQL DB to Databricks using the connectors. Now the same user needs to connect from Azure SQL database. I can see many docs for connecting to and interacting with the Azure SQL Database from Databricks workspace but not the other way around. ie from Azure SQL DB to Databricks workspace.
- Labels:
-
Partner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Can I ask what types of operations do you plan on taking against Databricks from withing Azure SQL Database?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@BigRoux : They query the data from the SQL warehouse in large volumes into the SQL DB. I think they have a webapp connecting to their database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
To connect an Azure SQL Database to an Azure Databricks workspace for initiating a relationship where the SQL Database interacts with Databricks (rather than the typical reverse flow), no standard methodology is outlined in public Databricks documentation. Most guides focus on data ingestion from Azure SQL Database to Databricks, not the reverse.
However, Lakehouse Federation in Unity Catalog may provide a viable approach for querying external sources like Azure SQL Database without moving data. Here's a concise summary:
1. Lakehouse Federation Overview:
- Unity Catalog enables federated queries on external databases, allowing data to remain in Azure SQL Database while being queried through Databricks.
2. Setup Steps:
- Connection: Establish a connection to Azure SQL Database in Unity Catalog using host details, credentials, and authentication methods (e.g., OAuth or private networking).
- Foreign Catalog: Create a "foreign catalog" object in Unity Catalog to mirror Azure SQL Database for query execution.
3. Access Control:
- Unity Catalog provides fine-grained access control, ensuring secure and authorized querying of external data sources.
4. Networking Requirements:
- Secure network connectivity between Databricks compute resources (e.g., clusters) and Azure SQL Database is essential. Use Private Link, VNet peering, or firewall allowlisting.
5. Limitations:
- Queries via Lakehouse Federation are typically read-only.
- Compatibility and performance may vary based on Databricks Runtime version and configurations.
Directly enabling Azure SQL Database to "push data" or communicate towards Databricks is uncommon. Most workflows involve reading data *into* Databricks for downstream analytics.
For federated querying setups, refer to [Microsoft Databricks documentation](https://learn.microsoft.com/en-us/azure/databricks/query-federation/sql-server) for detailed configurations.
For bidirectional flows or advanced use cases, custom solutions like APIs or triggers in Azure SQL may be required. Let me know if you need further clarification!
Sources

