Re: JDBC-ODBC-Bridge
- From: Christian Vallant <christian.vallant@xxxxxxx>
- Date: Tue, 29 Nov 2005 20:49:52 +0100
Herman Timmermans wrote:
Christian, a little bit of more detailed information would be helpfull :
1) what database are you connecting to ? What release? (I suspect MS SQL??) 2) how do you connect ? From where, what ( code ?) 3) local or remote ? 4) what is your datasource config you are using under OO 5) how do you connect at the console ?
Maybe we can help you if we get some more meaningfull info,
Rgds, Herman
Hello!
I connect from a Linux Client (Ubuntu 5.10) to a Windows Server (Windows 2003). The database on the server is Progress 9.1E.
I connect with an openlink odbc-driver from the linux client.
This connection running fine. I can use query in the console they works fine.
I also tried to connect from openoffice2 with the odbc-connection to the database. This connection works also fine.
So i will connect with the jdbc-odbc-bridge form java on the linux client to the databaseserver trough odbc (installed local on the system)
The java programm to connect to the database:
public class ProConnection {
public ProConnection(){}
public static Connection getConnection(String odbc_con, String user, String password) throws Exception
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");String URL = "jdbc:odbc:hyplog"; Connection c = DriverManager.getConnection(URL, user, password); return c; } }
I will get the errer from my last posting.
The connection the the console (Test with iodbctest from openlink) works fine, also the connection from openoffice with odbc works fine. I use the ODBC Data source in openoffice to connect to the server.
But the connection from java doen't work.
Best regards Christian .
- Follow-Ups:
- Re: JDBC-ODBC-Bridge
- From: Joe Weinstein
- Re: JDBC-ODBC-Bridge
- References:
- JDBC-ODBC-Bridge
- From: Christian Vallant
- Re: JDBC-ODBC-Bridge
- From: Herman Timmermans
- JDBC-ODBC-Bridge
- Prev by Date: Re: JDBC-ODBC-Bridge
- Next by Date: Re: JDBC-ODBC-Bridge
- Previous by thread: Re: JDBC-ODBC-Bridge
- Next by thread: Re: JDBC-ODBC-Bridge
- Index(es):
Relevant Pages
|