Skip to content

MSSQL Server connections via Windows Authentication #303

Discussion options

You must be logged in to vote

Just connect like this:

val database = Database.connect("jdbc:sqlserver://MyServer:integratedSecurity=true;")

In production environment, I'll be better to use a connection pool:

val datasource = ... // Any java.sql.DataSource implementation is OK. 
val database = Database.connect(datasource)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@celestialvigor
Comment options

Answer selected by celestialvigor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants