Forum Discussion
kondasamy
9 years agoRegular Contributor
I could able to connect to MS SQL server using the below connection string,
GroovyUtils.registerJdbcDriver( "com.microsoft.sqlserver.jdbc.SQLServerDriver" ) sql = Sql.newInstance("jdbc:sqlserver://$DB_URL;databaseName=$DB_NAME;user=$DB_LOGIN;password=$DB_PWD","com.microsoft.sqlserver.jdbc.SQLServerDriver")
Also the DB_URL should be in the format - 192.17.193.21:1433.
Thanks,
Kondasamy
Related Content
Recent Discussions
- 22 hours ago
- 22 hours ago