Re: getConnection to MS ACCESS problem
From: jim caprioli (jim.cp_at_zonnet.nl)
Date: 04/11/04
- Next message: Robert Klemme: "Re: Servlet To Java Application Communication"
- Previous message: jim caprioli: "Re: insertRow() without database update?"
- Next in thread: Josef Garvi: "Re: getConnection to MS ACCESS problem"
- Maybe reply: Josef Garvi: "Re: getConnection to MS ACCESS problem"
- Reply: Dirk Michaelsen: "Re: getConnection to MS ACCESS problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 11 Apr 2004 06:25:11 +0200
Have you tried the Microsoft Knowledge Base?
On 30 Mar 2004 02:24:00 -0800, Avraham <niv444@walla.co.il> wrote:
> Hello,
>
> getConnection problem.
>
> I run this on windows XP. I have MS ACCESS
> database working well.
>
> The problem is with trying to connect to the database (?).
> The database does exist.
>
> -----------------------------------------
>
> import java.sql.*;
> import sun.jdbc.odbc.*;
>
> public class Test {
> public static void main(String[] args) {
> try{
> Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> }catch(java.lang.ClassNotFoundException e){
> System.err.println("ClassNotFoundException: ");
> System.err.println(e.getMessage());
> }
>
> String url="jdbc:odbc:ADDRBOOK";
>
> try{
> Connection con = DriverManager.getConnection(url,"","");
> }catch(SQLException ex){
> System.err.println("SQLException: ");
> System.err.println(ex.getMessage());
> }
> }
> }
>
> -----------------------------------------
> Here is what I get ( ignore the Hebrew characters..I can not read it
> on my XP anyway)
>
> SQLException:
> [Microsoft][ODBC Driver Manager]
> ???? ???° ??·???? ?? ??÷? ??? ÷??? ???? ?·?? ??
> ???? ?°?°· ????
> Press any key to continue...
>
> --------------------------------
> The first "try" does not throw an exception.
> The second "try" does, why ? what should I do ?
>
>
> Please help.
> Thanks, Niv
-- http://NiLOSTEP.com/
- Next message: Robert Klemme: "Re: Servlet To Java Application Communication"
- Previous message: jim caprioli: "Re: insertRow() without database update?"
- Next in thread: Josef Garvi: "Re: getConnection to MS ACCESS problem"
- Maybe reply: Josef Garvi: "Re: getConnection to MS ACCESS problem"
- Reply: Dirk Michaelsen: "Re: getConnection to MS ACCESS problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|