Hi Daniel, All

Thanks a lot for yours quick response.
I follow the instructions form the tutorial but I get the following exception::

Exception in Establishing the connection to the dataBase com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAPDBTech
JDBC: Cannot connect to jdbc:sapdb://corfu/ [Cannot connect to host corfu [Connection refused: connect], -813.].

Where corfu is the  serverName. Also I tried instead of "corfu" to put an empty string because It is running on local host but the problem insists...

PS: When I start the MAXDB I get an error form the Xserver (it can not start). Do you think that this has something to do with my problem?
If yes then how the SQL Studio can connect to the DB ?

Thanks in advance
George

Daniel Dittmar wrote:
George Pagomenos wrote:
String driverName="com.sap.dbtech.jdbc.DriverSapDB";
Connection databaseConnection = null;
String url = "";

Use "jdbc:sapdb:" instead. See http://www.mysql.com/documentation/maxdb/fe/68e343cc68414da4426258d3e896ae/frameset.htm for a complete example.

The jdbc:odbc: prefix would be required if you were using the JDBC-ODBC bridge (http://java.sun.com/j2se/1.3/docs/guide/jdbc/getstart/bridge.doc.html).

You also don't have to install the MaxDB ODBC driver (odbc75.exe), sapdbc.jar is all that is required to connect using JDBC.

Daniel Dittmar


--
signature
 
George Pagomenos
Ellemedia Technologies
223 Syggrou Ave,
171 21 Athens, Greece

Tel.: +302109373095
email: [EMAIL PROTECTED]




<<inline: logo_ellemedia_3D.bmp>>

Reply via email to