[Solved] Connect to SQLite database
[Solved] Connect to SQLite database
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
Re: Connect to SQLite database
You can connect with ODBC driver: http://www.ch-werner.de/sqliteodbc/ .
JDBC connection not working, due to some issue.
JDBC connection not working, due to some issue.
AOO 4.0 and LibO 4 on Win 8
Hungarian forum co-admin
Hungarian forum co-admin
Re: Connect to SQLite database
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.
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.
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.
Re: Connect to SQLite database
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