Hi,
i wrote a small program which uses
jdbc to connect to the sybase database. The driver got loaded successfully.
Class.forName("com.sybase.jdbc2.jdbc.SybDriver");
Then i tried to get connected to the database.
Connection con = DriverManager.getConnection( "jdbc:sybase:Tds:10.1.0.36:4100/trexdev", "mxc", "trx123");
I get an SQLException which says
" sql warning JZ00L: Login failed. Examine the SQLWarnings chained to this exception for the reason(s). "
Can anyone tell me how to get the SQLWarnings for the exception.
i am able to connect to the database with the same login in another program but not this, why?
Thanks in advance
Madhuri