Hello @Luuk van Vliet ,
Welcome to the Microsoft Q&A platform.
You can connect Azure SQL database using JDBC or Apache Spark Connector.
The Spark connector for Azure SQL Database and SQL Server enables these databases to act as input data sources and output data sinks for Apache Spark jobs. It allows you to use real-time transactional data in big data analytics and persist results for ad-hoc queries or reporting.
- Compared to the built-in JDBC connector, this connector provides the ability to bulk insert data into SQL databases.
- It can outperform row-by-row insertion with 10x to 20x faster performance. The Spark connector for SQL Server and Azure SQL Database also supports Azure Active Directory (AAD) authentication.
- It allows you to securely connect to your Azure SQL databases from Azure Databricks using your AAD account. It provides interfaces that are similar to the built-in JDBC connector.
- It is easy to migrate your existing Spark jobs to use this connector.
Note: A Spark connector that supports Databricks Runtime 7.x is not yet available. Databricks recommends that you use the JDBC connector or Databricks Runtime 6.6 or below.
For more details, refer to the below links:
SQL Databases using the Apache Spark connector
Hope this helps. Do let us know if you any further queries.
------------
- Please accept an answer is correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
- Want a reminder to come back and check responses? Here is how to subscribe to a notification.