Forum Discussion

eetawil_yahoo_c's avatar
eetawil_yahoo_c
New Contributor
7 years ago

Error jz00l when Connecting to sybase database via groovy

Hi, when I connect using the JDBC Request Test Step to my Sybase DB it works (or when I use the "test connection" button).   When I do the same via groovy it doesn't here is the code and the logs...
  • eetawil_yahoo_c's avatar
    7 years ago

    Turns out I was just missing some parameters!

     

    def sql = Sql.newInstance(ConObj.getConnectionString() ,userName, PAssword, driver);

    Didn't think of it as this information was already in the ConnectionString!!

    When I read the connection string variable it showed the username and pass in it as expected...strange!