cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to connect using JDBC to SqlAnywhere 17

4,080

I try to connect to SqlAnywhere 17 demoDB using a tool called DbSchema. The tool is using JDBC connection.

For this I started SQL Central, then I also did dbsrv17.exe -x tcpip -n server1 to start the Tcp/IP service ( this is in the tool Help ).

Then I try to connect as DBA/sql but I get 'failed login'. I tried also creating an user in SQL Central and connect using it, but connectivity still fails. The connection is done like this:

final Properties properties = new Properties(); properties.put( "user","DBA"); properties.put( "password","sql"); driver.connect( "jdbc:sybase:Tds:localhost:2638/demo?LITERAL_PARAMS=true", properties );

The error is java.sql.SQLException: JZ00L: Login fehlgeschlagen. �berpr�fen Sie SQLWarnings zu diesem Fehler, um die Ursache zu sehen. translated Login failed. Check SQLWarnings about this error to see the cause. I don't know how to get the SQLWarnings.

Any suggestion on what should I check ?

Accepted Solutions (0)

Answers (3)

Answers (3)

chris_keating
Product and Topic Expert
Product and Topic Expert

A fix has been made to address "Driver not capable" errors reported accessing SQL Anywhere metadata information when supplying catalog information, i.e., the following JDBC call:

   ResultSet tables = metaData.getTables( conn.getCatalog(), "GROUPO", "%", types );

The error will continue to be reported if the database name of the connection does not match the supplied catalog.

This has been addressed in Engineering Case #822551 in SQL Anywhere 17.0 Build 6194 and will be available in an upcoming patch.

0 Kudos

Same issue in linux and mac. In windows connect normally 😞

Has anyone already solved this problem?

chris_keating
Product and Topic Expert
Product and Topic Expert
0 Kudos

Can you start a new thread and provide the details of the issue (including any errors or exceptions) that you are seeing in Linux and Mac.

0 Kudos

copy the dbjdbc17.dll found in your SQL Anywhere\\Bin64 directory into the same directory that you copied the sajdbc4.jar and try it again.