Can I put user/password in property like:
Properties props = new Properties();
String url = "jdbc:csv:ftp://hostname"
props.put("user","utest");
props.put("password","ptest");
Connection con = DriverManager.getConnection(url,props);
or I have to put them inside the url like:
String url = "jdbc:csv:ftp://utest:ptest@hostname"
Thanks!
|
>Can I put user/password in property like
You can't, because user/password are jdbc connection property.
>String url = "jdbc:csv:ftp://utest:ptest@hostname"
Yeah, You nedd to put it into ftp url.
|