Customer Portal

How do I connect do data sources using ODBC instead of jdbc?

Comments 3

  • Avatar
    dpavlis
    0
    Comment actions Permalink
    Connecting to ODBC data sources is supported through JDBC-ODBC bridge driver - many DBs without JDBC driver works well.

    Not all JDBC functionality is always supported - depends on the ODBC driver mostly. In case of MS Access the call which Clover uses to get list of tables in DB (catalog) is not supported by the ODBC driver - hence the error message.

    Some of the DBs you listed are directly supported by Clover - dBase/FoxBase/FoxPro - see DBFDataReader doc
    The JDBC driver for Pervasive is already included in Clover. DataFlux - there is ODBC driver, not sure about JDBC.

    As for the MS Access and other DBs connected through the JDBC-ODBC bridge - the DBInputTable/DBOutputTable will work. Getting the metadata extracted may be more work - you can create the metadata manually or use the analyzeDB utility supplied with CloverETL Engine.

    Following would be the usage of the utility to extract metadata from table "orders" from already configured ODBC source "northwind" (MS Access demo DB).

    analyzeDB.bat -dbDriver sun.jdbc.odbc.JdbcOdbcDriver -dbURL jdbc:odbc:northwind -q "select * from orders"


    The analyzeDB utility is in "/bin" subdir of CloverETL Engine installation - downloadable for example for SF.net CloverETL Engine OSS

    Just grab that and unzip the cloverETL.rel-3-2-0.zip. However there seems to be some problem with the Windows version of the analyzeDB.bat - try to use the one attached to this post instead.
  • Avatar
    sgehret
    0
    Comment actions Permalink
    Thanks very much for the information.

    Scott
  • Avatar
    softvision
    0
    Comment actions Permalink
    Solved:Using MS Access Driver in CloverETL with Office 2007 on Windows 7 64Bit

    I had to install the 64 Bit MS Access Driver, but System first did not accept, as Office 2007 (32) is installed. Found the solution here:

    http://blog.codefluententities.com/2011/01/20/microsoft-access-database-engine-2010-redistributable/

    Then used this connection String:
    jdbc:odbc:Driver={Microsoft Access Driver (*.mdb, *.accdb)};DBQ=<pathToDatabase>

Please sign in to leave a comment.