An example how to connect to SQL Server data using windows authentication
We use SQL Server to store data. I would like to connect to SQL to pull manipulate and sometimes push data back. I've seen some examples online of connecting but I cannot successfully re-create.
- 4377 Views
- 4 replies
- 5 kudos
Latest Reply
You can use jTDS library from maven, add this to your cluster. Once installed, you can write the below code to connect to your Database.Code in Scala will be:import java.util.Properties val driverClass = "net.sourceforge.jtds.jdbc.Driver" val serve...
- 5 kudos