简体   繁体   中英

Birt Eclipse, connecting to a SQLite database through ODBC? Do I need a specific JDBC driver for Birt to use?

I have been working on this for a while now and, unfortunately have little previous exposure to Birt as well as JDBC / ODBC. I've been searching and searching but can't conclusively figure out what I need for Birt to be able to connect to an SQLite database through ODBC.

I have setup the SQLit db on my windows machine to use ODBC. From here, however, I can't figure out, in the Birt Report Designer-> New data source-> JDBC data source what I am supposed to put in in order to access the DB.

Do I need a specific driver for this that I need to install to use as the "Driver Class"

Is the path to my ODBC / SQLite db the "Driver URL" field?

I would greatly appreciate any advice on this.

There is a JDBC driver specifically for SQLite, so you don't have to use a bridge.

The URL should be:

jdbc:sqlite:/path/to/my.db

The class is org.sqlite.JDBC .

As the initial answer points out, you can download the SQLite JDBC driver. Once downloaded, you need to correctly deploy the JAR into BIRT so the driver will be available in the eclipse designer. Put the JAR in:

<BIRT Install>\eclipse\plugins\com.actuate.data.oda.jdbc.drivers_<BIRT VERSION>

Once the JAR is there, re-start Eclipse/BIRT and you should be able to create a SQLite data source pretty easily.

Good Luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM