[Solved] Connect to SQLite database

dBase, Calc, CSV, MS ACCESS, MySQL, PostgrSQL, OTHER
Post Reply
Devlei
Posts: 12
Joined: Mon Nov 01, 2010 7:12 am

[Solved] Connect to SQLite database

Post by Devlei »

My mobile application uses a SQLite database which has a synchronised copy on my desktop. How do I connect to that database with Base?
Last edited by Devlei on Fri Nov 05, 2010 4:57 pm, edited 1 time in total.
Open Office 3.2.1 running on Windows XP
User avatar
r4zoli
Volunteer
Posts: 2882
Joined: Mon Nov 19, 2007 8:23 pm
Location: Budapest, Hungary

Re: Connect to SQLite database

Post by r4zoli »

You can connect with ODBC driver: http://www.ch-werner.de/sqliteodbc/ .
JDBC connection not working, due to some issue.
AOO 4.0 and LibO 4 on Win 8
Hungarian forum co-admin
rudolfo
Volunteer
Posts: 1488
Joined: Wed Mar 19, 2008 11:34 am
Location: Germany

Re: Connect to SQLite database

Post by rudolfo »

For anything related with external databases http://dba.openoffice.org is a good place to start.
Interestingly their FAQs don't say anything about SQLite. This could either mean that there are no problems with the SQLite driver ... or that it is so rarely used that hardly anybody reports problems.
Still if you look at the navigation bar at dba.openoffice.org you will find a link (after PostgreSQL and the mdb tools) about SQLite (native sdbc driver). The binary files (for linux) are located on the same site as the above mentioned ODBC drivers: http://www.ch-werner.de/sqliteodbc/sqli ... -0.1.1.zip. No Windows binaries available and it is not tested on windows either. Also somewhere on the site they mention that the sdbc driver is in alpha state. The binaries for Linux in the zip archive are from 2004, so I guess this sdbc driver is not really maintained anymore.

In short use the ODBC driver as recommended by r4zoli above. I use ODBC as well and I haven't got any problems so far. But note that I don't use Base for Data Definition only to view and edit tables.
OpenOffice 3.1.1 (2.4.3 until October 2009) and LibreOffice 3.3.2 on Windows 2000, AOO 3.4.1 on Windows 7
There are several macro languages in OOo, but none of them is called Visual Basic or VB(A)! Please call it OOo Basic, Star Basic or simply Basic.
Devlei
Posts: 12
Joined: Mon Nov 01, 2010 7:12 am

Re: Connect to SQLite database

Post by Devlei »

Thanks for your responses r4zoli and rudolfo, I'm starting to get the hang of things.
Open Office 3.2.1 running on Windows XP
Post Reply