How can I connect to an Azure SQL db from a Databricks notebook?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2022 08:33 AM
I know how to do it with spark, and read/write tables (like https://docs.microsoft.com/en-gb/azure/databricks/data/data-sources/sql-databases#python-example )
But this time, I need to only update a field of a specific row in a table. I do not think I can do that with spark jdbc (mode for append or overwrite)
Then, I tried to use jaydebeapi and pymssql, but no success.
jaydebeapi would: Class com.microsoft.sqlserver.jdbc.SQLServerDriver is not found
Also tried to use pyodbc, but failed to install mssql odbc driver.
what is the best practice for that usecase?
Labels:
- Labels:
-
Databricks notebook
-
Databricks SQL