%md
###Set the connection string
This could also be passed inline in the JDBC call, but I find it cleaner to setup a connection string ahead of time.
Example:
jdbcDF = spark.read.format("jdbc") \ <br>
.option("url", f"jdbc:sqlserver://localhost:1433;databaseName={database}") \ <br>
.option("dbtable", "Employees") \ <br>
.option("user", user) \ <br>
.option("password", password) \ <br>
.option("driver", "com.microsoft.sqlserver.jdbc.SQLServerDriver") \ <br>
.load()
Import required libraries
Last refresh: Never