Hubert-Dudek
Databricks MVP

To write to Azure SQL you don't need to install the driver just use:

jdbcUrl = "jdbc:sqlserver://{0}:{1};database={2};user={3};password={4}".format(jdbcHostname, jdbcPort, jdbcDatabase, username, password)
 
(df
.write
.jdbc(jdbcUrl, "table_name"))


My blog: https://databrickster.medium.com/