![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Code Samples & Tips Share your recent discoveries and ideas with other users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
First of all, this wisdom isn't mine. I found it on the internet when i wanted to convert an MS Access database. As this could be helpfull to other B4PPC users i will quote the text here. Thanks to SSIDE for the following text.
1-Export the access database into text files, semicolon or comma delimited. 2-Open the SQLite database browser version 1.1 and chose file->import->table from csv file. Browse for your text file and choose the proper delimiter. Click create. 3-Done. I assume that you have already a access database and you have already created a sqlite database with the proper table. Before you import the text file (csv file) into sqlite you must open the sqlite database where you want to import the text file (csv file) to. If you have created no table then the opportunity will be given to create one or to use the first line of the text file (csv file) to create the fields (columns). Another way to create sqlite database from access or from excel is to save each column into a text file. That means a table with 7 columns = 7 text files. Use TextFile.ReadToTable to read the contents of the 7 text files into tables and use the for loop to load them into a sqlite database. There are other ways to convert access database or excel doc into sqlite database but i described 2 of them. I have used similar ways to create sql databases but in some occassions you need a php script. The SQLite database browser can be found at http://sqlitebrowser.sourceforge.net. The latest version is 1.3. I've tried it and it works as a charm. Mind you, it can take a very long time to convert a large table. Peter
__________________
PC : P4 3gHz, 512 MiB PPC : Asus A600 + 1 GiB SD --------------------------------------------------- (Reminder to self: )
|
|
||||
|
A better way is to download SQLite2007 Pro Enterprise Manager (freeware) from http://www.osenxpsuite.net/?xp=3
Dimitris ---------- Basic4ppc: best rad tool for Windows Mobile! Last edited by dzt : 05-20-2007 at 10:26 PM. |
|
|||
|
Thank you for the address Dimitris
this is also free and it works well http://sourceforge.net/projects/sqlitebrowser/ manu |
|
||||
|
Hi JensPusch,
You are right. When I had posted the link it was realy freeware (at least as I remeber). Now it is not. In the meantime I've made my own tool posted here Convert Any Database to SQLite (source & exe) which fits better in my needs. Regards |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Date save as zero (0) in the SQLite database | mozaharul | Questions & Help Needed | 2 | 04-02-2008 09:25 AM |
| Command to create a database in sqlite | mozaharul | Questions & Help Needed | 5 | 03-30-2008 03:38 AM |
| How to combine table control and sqlite database | mozaharul | Questions & Help Needed | 1 | 03-27-2008 12:10 PM |
| Convert Any Database to SQLite (source & exe) | dzt | Code Samples & Tips | 6 | 02-28-2008 07:39 AM |
| multiple connections to a sqlite database | Peter | Questions & Help Needed | 5 | 05-13-2007 07:49 AM |