Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. def db = [url: "jdbc:sqlserver://xxx.xx.xx.xx:1433",user: 'abc', password: 'pwd', driver:'com.microsoft.sqlserver.jdbc.SQLServerDriver']
  2. def sql1 = Sql.newInstance(db.url, db.user, db.password, db.driver)
  3.  
  4. def db = [url: "jdbc:sqlserver://172.16.16.18:1433:master",user: 'maxidreader', password: 'Re@de$R', driver:'com.microsoft.sqlserver.jdbc.SQLServerDriver']
  5. def sql1 = Sql.newInstance(db.url, db.user, db.password, db.driver)
  6.  
  7. Error
  8. org.codehaus.groovy.runtime.InvokerInvocationException: com.microsoft.sqlserver.jdbc.SQLServerException: The port number 1433:master is not valid.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement