JDBC-ODBC Bridge Driver Suitable?

I'm implementing a web site for a small company, so will be using MS Access for the database.
Will a JDBC-ODBC Bridge driver be suitable?
I ask this as I have heard that JDBC-ODBC Bridge drivers are only suitable for testing purposes - not commercial use.
Cheers

Ideally, you should use a third-party driver in your implementation. Not that there's anything wrong with the JDBC-ODBC Driver, but like you said, Sun never really intended it to be used for mainstream applications. It was developed to serve as a generic driver until third party drivers could be developed and released. Now that there's plenty of good third party drivers out there, the use of the JdbcOdbcDriver is really not recommended. Here's a list of current drivers available for MS Access.
http://servlet.java.sun.com/products/jdbc/drivers/search_results.jsp?jdbc_version=0&vendor_name=&cert_mode=and&jdbc_driver_type_mode=and&dbms=6&dbms_mode=and&features_mode=and&results_per_page=20&submit=Search

Similar Messages

  • What's the URL in a JDBC-ODBC bridge driver connection?

    I'm trying to use a JDBC-ODBC bridge driver but I don't know what is the URL I need to put inside a the "getConnection (String URL, String userid, String passwd)" method.
    Connection conn = DriverManager.getConnection(URL, user, passwd);
    Can anybody help me?

    Yes Marc,
    but maybe Edgar should know that he first has to add a ODBC datasource.
    in WINNT
    Goto System ODBC Datasources and try to connect to your DB.
    If the test is working than you can use the name you have chosen
    as URL
    good luck
    Stefan

  • Can't find jdbc-odbc bridge driver

    Hi
    I've installed sdk 2.0 (v1.4.1) and am getting the runtime error:
    "Exception in thread main java.lang.NoClassDefFoundError <prog name>/class" from the java prompt.
    I suspect it is the jdbc-odbc bridge driver that is the problem. It should have downloaded with the SD 2.0 installation, but I can't find it on my NT PC.
    Any ideas?

    I suspect you are using,java <program_name>.class to execute your program.
    Then it will try to find the promram 'class' in the package '<program_name>'.
    You need to use, java <program_name>, thats all.
    For eaxample if you have Prg1.java, then use,
    'javac Prg1.java' to compile it and 'java Prg1' to run it.
    Sudha

  • JDBC ODBC Bridge/Driver???

    Hi,
    Please can someone help me?
    I'm a 4th year computer science student and have a final year project to do using databases. My problem is finding a JDBC:ODBC driver/bridge(what's the difference?).Every tutorial on the web says use the
    sun.jdbc.odbc.JdbcOdbcDriver, that's all well and good but where do I get it?I've tried downloading JDBC API's but still no joy. When I do finally find a driver do I need to copy it to the folder where the rest of my project is,
    (that's what I had to do for a mysql driver I had to use before). I want to use Microsoft Access with the project for portability and ease of alteration, do I need to set up an ODBC driver for my database as well as using the JDBC:ODBC bridge?
    That probably came out like complete double dutch but I hope someone out there can make sense of it and help me.

    Please can someone help me?Start with a tutorial http://java.sun.com/docs/books/tutorial/jdbc/index.html
    Basic info on your particular problem:
    JDBC defines an 'interface' that allows one to access databases. That usually consists of serveral parts: the database, the interface layer, the jdbc driver and jdbc itself.
    JDBC comes with java. In addition a single jdbc driver, the 'jdbc-odbc bridge' driver comes with java. To use that particular driver you also need the 'interface layer' which for MS Acess will mostly already be available to you - basically the ODBC shell (not part of java) and the MS Access ODBC driver (also not part of java.)
    Keep in mind that the jdbc-odbc bridge driver uses the ODBC that is already on the box. ODBC itself is not part of the driver.
    You will probably need to configure ODBC for use as a 'DSN' (Data Source Name?). To do that you go to the control panel and use the ODBC (Data Sources) applet. Pick 'System DSN' (a panel in the dialog), push 'Add' and follow the prompts by picking a MS Access driver. You can either use 'create' or 'select' at the end to create or use an existing database.
    If this seems like too much work then search the JDBC forum using "DSN-less" as the search string. The discussions there will tell you how to set up a connect string without creating a DSN.
    If you have further questions on this particular subject it would be best to post them to the JDBC forum rather than here.

  • JDBC-ODBC BRIDGE  "No Suitable Driver"

    I am trying to link the JAVA (VJ++) to MS ACCESS 2000. I am always getting the error: "No Suitable Driver"
    I am sure I that I have set up the SYSTEM DSN and installed jdk1.2.2 correctly. I just can't understand why it insists on not working!!??
    I have tryed everything I know, but I still cant get this problem sorted and I'm about to give up. Does the driver even work when trying to establish this kind of link???!!!
    CODE:
    public class AuditConnect
         private Connection Aconn;
         private String strUrl = "jdbc:odbc:CSDMATlink";
         private String user = "tiger";
         private String password = "tiger";
         private String Err;
         public AuditConnect()
              try
                   try
                        Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");                                        
                   catch(ClassNotFoundException ex)
                        Err = ex.getMessage();                    
                   Aconn = DriverManager.getConnection(strUrl, user, password);
              catch(SQLException SQLErr)
                   Err = SQLErr.getMessage();               
    Help me please, I'm desperate!!!

    A new version of the JDK was not necessary to fix the problem. In any event let's start with configuring your box correctly. The CLASSPATH environment variable is not necessary when using the core JDK classes (of which the JDBC-ODBC bridge classes are a part of). The CLASSPATH environment variable should only be used if you have third party class libraries you wish to add. I'm assuming that's not the case so I would recommend not coding the CLASSPATH variable. However if you have it already coded make sure to add the current directory (as denoted by a dot). For example:
    SET CLASSPATH=.;c:\JDK1.4.1_03\jre\lib\rt.jar
    Although the CLASSPATH is not necessary the PATH environment variable is crucial. You need to add the JDK's BIN directory to your current PATH statement. For example:
    SET PATH=%PATH%;c:\JDK1.4.1_03\bin
    The above should resolve the No suitable driver problem you've been encountering. Since JDK 1.2.x the JDK's CLASSPATH is resolved via the PATH setting.
    Now as per my previous post you need to make sure that you really do have a well formed JDBC URL as that can also cause the No suitable driver problem.
    I'm not familiar with Win98 so I don't know if you update the environment variables via the AUTOEXEC.BAT file or if you use the Control Panel ala WinNT. Check your documentation to ensure you're updating correctly. Good luck.

  • Connecting remote FoxPro dbf file using jdbc odbc bridge driver?

    Hi all,
    I am new to this topic, (even I read some threads)
    I need to access some FoxPro tables (dbf files) and select some data and save to an oracle table. what is the best method to do this?
    If I use java as development tool. which other drivers or methods to use beside jdbc-odbc driver?
    I read from this link but I didn't understand.
    http://java.sun.com/products/jdbc/faq.html#5
    "5. How can I use the JDBC API to access a desktop database like Microsoft Access over the network?
    Most desktop databases currently require a JDBC solution that uses ODBC underneath. This is because the vendors of these database products haven't implemented all-Java JDBC drivers.
    The best approach is to use a commercial JDBC driver that supports ODBC and the database you want to use. See the JDBC drivers page for a list of available JDBC drivers.
    The JDBC-ODBC bridge from Sun's Java Software does not provide network access to desktop databases by itself. The JDBC-ODBC bridge loads ODBC as a local DLL, and typical ODBC drivers for desktop databases like Access aren't networked. The JDBC-ODBC bridge can be used together with the RMI-JDBC bridge, however, to access a desktop database like Access over the net. This RMI-JDBC-ODBC solution is free.
    "

    Another solution by using HXTT DBF, a commercial type 4 JDBC package: You should read Remote Access Questions section at http://www.hxtt.net/en/software/dbf/faq.html#remote .

  • Com.mysql.jdbc.driver and jdbc:odbc bridge driver

    Hi All,
    I want to update mysql database from data in hashtable. My application already uses JDBC:OBDC bridge driver for retrieving data from excel sheet and putting in hashtable.
    For connecting to mysql i need to use com.mysql.jdbc.driver too in the same code.
    How to do that?
    my code uses.
    Read(String strFilePath,String strFileName)
               filepath = strFilePath;
               filename = strFileName;
                strDriver= "jdbc:odbc:Driver={MicroSoft Excel Driver (*.xls)}";Thanks

    Please stay with one thread:
    http://forum.java.sun.com/thread.jspa?threadID=5145466&tstart=0
    Please don't cross-post this way.

  • J2EE and JDBC-ODBC bridge driver

    Hi all,
    in my application I want to access an ODBC database to get the data and put it into cloudscape. In my resources.properties I added the jdbc driver
    jdbcDriver.1.name=sun.jdbc.odbc.JdbcOdbcDriverand also added a datasource
    jdbcDataSource.5.name=jdbc/MyOdbc
    jdbcDataSource.5.url=jdbc\:odbc\:odbc-nameAfter starting j2ee 1.3.1 the server reports following error:
    Error in creating data source object: jdbc/MyOdbcWhat's going wrong? Thanks for your help.
    -chris

    additional information:
    The phenomenon happens only if I use J2SDK 1.4.0. Running the 1.3.1 the driver is loaded without any problems.
    Is it a security issue or am I not allowed to use 1.4 because it's too new?
    -chris

  • Sun JDBC-ODBC Bridge Driver

    I just starting looking into using JDeveloper 3.1. I cannot successfully use a connection to anything other than an Oracle database. I have a small sample that successfully connects to and uses an Oracle instance; however, trying to use JDBC to use a local Sybase Adaptive Server Anywhere database fails. The Test Connection works but I do not see any tables, views, etc. when creating Business Components. Furthermore, I cannot see the structures of the tables in the Database Browser for the JDBC conenctions. Does anyone have any idea what's wrong?
    TIA,
    Mark DeRosa

    Hi Jeff,
    You can try to:
    - start an ODI agent in verbose mode 5 and redirect its output to a log file -> >agent.bat -v=5 > log.txt
    - start your custom reverse-engineering using this agent and the RKM Jython.
    You should get plenty of information in that log file.
    Thanks,
    Julien

  • To run a report from command line, when using jdbc-odbc bridge

    Hi,
    How to run a report from command line, when using jdbc-odbc bridge?
    Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
    with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
    Please specify, what is command line arguments for jdbc-odbc bridge driver?
    Environment : Oracle 9i Report Builder on WinNT
    Database : Sybase
    Regards,
    Ramanan

    Hello Ramanan,
    Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
    JDBC PDS allows user to connect one or more same or different kind of databases.
    While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
    Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
    rwrun eg :
    rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
    Server eg :
    http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
    http :
    Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
    With Regards
    Reports Team

  • JDBC-ODBC Bridge to SPSS data files - Result Set Type is not supported

    Hello,
    As mentioned in the subject I am trying to read SPSS data files using the SPSS 32-Bit data driver, ODBC and the JDBC-ODBC Bridge.
    Using this SPSS Driver I manged to read the data directly into an MS-SQL Server using:
    SELECT [...] FROM
    OPENROWSET(''MSDASQL.1'',''DRIVER={SPSS 32-BIT Data Driver (*.sav)};DBQ=' SomePathWhereTheFilesAre';SERVER=NotTheServer'', ''SELECT 'SomeSPSSColumn' FROM "'SomeSPSSFileNameWithoutExt'"'') AS a
    This works fine!
    Using Access and an ODBC System DNS works for IMPORTING but NOT for LINKING.
    It is even possible to read the data using the very slow SPSS API.
    However, when it comes to JDBC-ODBC the below code does only work in part. The driver is loaded successfully, but when it comes to transferring data into the resultset object the error
    SQLState: null
    Result Set Type is not supported
    Vendor: 0
    occurs.
    The official answer from SPSS is to use .Net or to use their implementation with Python in their new version 14.0. But this is obviously not an option when you want to use only Java.
    Does anybody have experience with SPSS and JDBC-ODBC??? I have tried the possible ResultSet Types, which I took from:
    http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/rjvdsprp.htm
    and none of them worked.
    Thank you in advance for your ideas and input & stay happy!
    Here the code without all the rest of the class arround it:
    // Module:  SimpleSelect.java
    // Description: Test program for ODBC API interface.  This java application
    // will connect to a JDBC driver, issue a select statement
    // and display all result columns and rows
    // Product: JDBC to ODBC Bridge
    // Author:  Karl Moss
    // Date:  February, 1996
    // Copyright: 1990-1996 INTERSOLV, Inc.
    // This software contains confidential and proprietary
    // information of INTERSOLV, Inc.
    public static void main1() {
      String url   = "jdbc:odbc:SomeSystemDNS";
      String query = "SELECT SomeSPSSColumn FROM 'SomeSPSSFileName'";
      try {
        // Load the jdbc-odbc bridge driver
        Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
        DriverManager.setLogStream(System.out);
        // Attempt to connect to a driver.  Each one
        // of the registered drivers will be loaded until
        // one is found that can process this URL
        Connection con = DriverManager.getConnection (url);
        // If we were unable to connect, an exception
        // would have been thrown.  So, if we get here,
        // we are successfully connected to the URL
        // Check for, and display and warnings generated
        // by the connect.
        checkForWarning (con.getWarnings ());
        // Get the DatabaseMetaData object and display
        // some information about the connection
        DatabaseMetaData dma = con.getMetaData ();
        System.out.println("\nConnected to " + dma.getURL());
        System.out.println("Driver       " +
          dma.getDriverName());
        System.out.println("Version      " +
          dma.getDriverVersion());
        System.out.println("");
        // Create a Statement object so we can submit
        // SQL statements to the driver
        Statement stmt = con.createStatement(ResultSet.TYPE_FORWARD_ONLY ,ResultSet.CONCUR_READ_ONLY);
        // Submit a query, creating a ResultSet object
        ResultSet rs = stmt.executeQuery (query);
        // Display all columns and rows from the result set
        dispResultSet (rs);
        // Close the result set
        rs.close();
        // Close the statement
        stmt.close();
        // Close the connection
        con.close();
      }

    Thank you for your reply StuDerby!
    Actually the above script was before, as you suggested, leaving the ResultSetTeype default. This did not work...
    I am getting gray hair with SPSS - in terms of connectivity and "integratebility" none of their solutions offered is sufficient from my point of view.
    Variable definitions can only be read by the slow API, data can only be read by Python or Microsoft Products... and if you want to combine both you are in big trouble. I can only assume that this is a company strategy to sell their Dimensions Platform to companies versus having companies developping their applications according to business needs.
    Thanks again for any furthur suggestions and I hope, that some SPSS Developper will see this post!
    Cheers!!

  • Access MS-Access using JDBC ODBC bridge from Sun AMD64

    Hi,
    We are trying to configure a communication channel using the JDBC adapter. We are setting the driver to the JDBC-ODBC bridge driver and trying to access an MS Acess database from the PI server(sun amd64). When we set the driver to the JDBC-ODBC bridge, the J2EE engine tries to restart immediately and does not start. The std_server.out contains the following error:
    Service com.sap.aii.adapter.jdbc.svc started. (234 ms).
    1016 sun.io.CharToByteASCII::convert (370 bytes)
    1017 ! com.sap.sql.jdbc.common.CommonPreparedStatement::close (119
    bytes)
    ld.so.1: jlaunch: fatal: relocation error:
    file /usr/j2se/jre/lib/amd64/libJdbcO
    dbc.so: symbol SQLAllocEnv: referenced symbol not found
    Has anybody been able to configure the JDBC-ODBC bridge driver for MS Access? Also, has anybody used the database vendor(MS) drivers? If so, where are they available.
    Thanks in advance
    Vipin

    Hi
    Please go through below links that would be helpful to you
    SAP Network Blog: Connecting to MS Access using receiver JDBC Adapter (Without DSN)
    /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    If required Try the following driver. I havent used it but its available.
    HXTT Access is such a type 4 driver at http://www.hxtt.net/en/software/access/document.html .
    Thanks
    Swarup

  • JDBC ODBC bridge (JDK 1.4) exception in native code

    I am using jdk 1.4 on windows 98. I have written this simple java program which uses jdbc odbc bridge to connect to an MS Access 2000 db.
    An exception in native code is thrown only when I use createStatement with scrollable resultset. If I use createStatement() with default forward only resultset type, then program works.
    import java.sql.*;
    public class Select
         public static void main(String[] args)
              try
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   Connection con = DriverManager.getConnection("jdbc:odbc:shopping");
                   Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
                   String query = "SELECT * from products";
                   ResultSet rs = stmt.executeQuery(query);
                   while (rs.next())
                        String s = rs.getString("name");
                        float n = rs.getFloat("price");
                        System.out.println(s + " " + n);
              catch (ClassNotFoundException e)
                   System.out.println("Class Not Found: " + e.getMessage());
              catch (SQLException e)
                   System.out.println("SQL Exception: " + e.getMessage());
    The program produces this error with scrollable resultset:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D366658
    Function=[Unknown.]
    Library=(N/A)
    NOTE: We are unable to locate the function name symbol for the error
    just occurred. Please refer to release documentation for possible
    reason and solutions.
    Current Java thread:
         at sun.jdbc.odbc.JdbcOdbc.setStmtAttrPtr(Native Method)
         at sun.jdbc.odbc.JdbcOdbc.SQLSetStmtAttrPtr(JdbcOdbc.java:4676)
         at sun.jdbc.odbc.JdbcOdbcResultSet.setRowStatusPtr(JdbcOdbcResultSet.java:4473)
         at sun.jdbc.odbc.JdbcOdbcResultSet.initialize(JdbcOdbcResultSet.java:171)
         at sun.jdbc.odbc.JdbcOdbcStatement.getResultSet(JdbcOdbcStatement.java:423)
         - locked <02C74480> (a sun.jdbc.odbc.JdbcOdbcStatement)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
         at Select.main(Select.java:13)
    Dynamic libraries:
    0x7CC00000 - 0x7CC1D000      D:\WINDOWS\SYSTEM\IMAGEHLP.DLL
    Local Time = Mon Jan 20 00:16:15 2003
    Elapsed Time = 7
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode)
    # An error report file has been saved as hs_err_pid4294751525.log.
    # Please refer to the file for further information.
    Is there any problem with jdbc odbc bridge driver?

    No. This is not a bug. Not all databases support (or have to support) all types of resultsets. It is your responsibility to ensure that a particular resultset is supported before you use it. That said, one would definitely expect a more descriptive error message in case of inadvertant use.

  • JDBC-ODBC bridge without DSN

    I have a MS Access database which I want to connect to dynamicly using JDBC-ODBC bridge and without having to create a new record for the database in the DSN.
    Usually the code looks like this
    // Load the JDBC-ODBC bridge driver
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    // ODBC data source name
    String dsn = "jdbc:odbc:AccessTest";
    String user = "admin";
    String password = "";
    con = DriverManager.getConnection(dsn, user, password);
    ...But since the position or name of the database is always changing I would like have it something like this
    String pathToDatabase = "c:\temp\database.mdb";
    // Load the JDBC-ODBC bridge driver
    Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
    // ODBC data source name
    String dsn = "jdbc:odbc:" + pathToDatabase;
    String user = "admin";
    String password = "";
    con = DriverManager.getConnection(dsn, user, password);
    ...I hope you know where I'm going with this and if you know the answer to.
    Thx

    search for "dynamic dsn" in this forum.

  • Oracle RDB Driver fails with JDBC/ODBC Bridge

    Has anyone experienced problems using the latest Oracle RDB
    Driver (3.0.2.0) with the JDBC/ODBC Bridge.
    We have been using the Oracle ODBC Driver for RDB (2.10.17)
    successfully on NT, but it is not supported on W2K. The new
    drivers work fine for Access etc., but fail with the bridge.
    Specifically, you can step thru a result set, but getObject()
    returns null for all fields.
    Any suggestions?
    Joe

    This forum is for general suggestions and feedback about the OTN
    site. For technical question about an Oracle product, you can
    select the appropriate discussion forum in our 'Discussions'
    section at: http://forums.oracle.com/forums/homepage.jsp
    Best regards, OTN Team

Maybe you are looking for

  • IPod Transfer.

    Hi guys, I'm wondering if anyone can shed some light on this issue! I'm having a problem transferring files from my computer to my iPod, and I'm not sure if it's my computer or my iPod that is giving me the problems. My computer is a 1.25 Powerbook G

  • Snow Leopard Instability - Possibly To Do With WD and Lacie FW Drives

    I have an early 2009 2,66gHz Mac Pro. 7GB Ram. At some point it got incredibly unstable running 10.6.4 (and earlier SL versions). I've tried running it with stock RAM. Same issue. Tried clean re-installing. Same issue. I post this here because I have

  • Windows 8.1 on brandnew notebook wants 32Gb for the recovery drive

    Hi, Bandnew notebook, switched on for the very first time. First thing I want to do after setup, is make a recovery drive. When choosing this option, the notebook prompts me for a flashdrive of "at least" 32Gb. How can that be since it's brandnew? An

  • Problem while calling fm "HR_INFOTYPE_OPERATION"

    Hi All, I am using fm "HR_INFOTYPE_OPERATION" in my program and getting a short dump I am giving the error analysis below - The source field is too short. In the running program "SAPLRHMM"  a field should have been assigned to a field symbol, which i

  • Delete Held Po

    If there  are no line items entered in a PO and the PO is held.NOw i want ot delete or block the held PO document.If i can delete PO..how to delete it. If ican block PO ..how to block it. There are no line items entered in it. Edited by: mysap query