klyn.databases.sql.sqlserver.SqlServerDriver.openConnection
method
public openConnection(url as String, properties as Map<String, String> = null) as Connection throws SQLException:
Description

Opens a SQL Server connection from URL and connection properties.

import klyn.databases.sql

properties = Map<String, String>()
properties["user"] = "sa"
# cnx = DriverManager.driverFor("sqlserver://localhost/app").openConnection("sqlserver://localhost/app", properties)
Throws
  • SQLException if URL parsing, TCP connection, TLS setup, or authentication fails.