specifying a database name in jdbc:jndi:ldap connection

specifying a database name in jdbc:jndi:ldap connection

Post by Thyag » Sat, 26 Apr 2008 00:21:40


Hi,

I'm trying to connect to Sybase using LDAP entries as follows. How do
I specify a database name in this connection string?.

Class.forName("com.sybase.jdbc3.jdbc.SybDriver");
String jdbcURL = "jdbc:sybase:jndi:ldap://sybaseldap:389/
sybaseServername=SERVER,ou=sybase,dc=db";
Connection con =
DriverManager.getConnection(jdbcURL,"user","password");

Thanks in advance,
Thyagu.D