Hello Abdullah Humayun,
Welcome to the Microsoft Q&A forum.
Databricks use the updated MSSQL-JDBC driver. You can use the below code to connect to your on-prem
(spark.read
.format("jdbc")
.option("url", "jdbc:sqlserver://servername\sqlinst001;database=dbname;loginTimeout=30;integratedSecurity=true;authenticationScheme=NTLM;")
.option("dbtable", "tblname")
.option("user", "username")
.option("password", "password")
.load()
.show()
)
also, you can use Apache spark for SQL connector
Referene documents:
https://learn.microsoft.com/en-us/sql/connect/spark/connector?view=sql-server-ver16#azure-active-directory-authentication
https://learn.microsoft.com/en-us/azure/databricks/security/network/classic/on-prem-network
I hope this helps.