D devlei Active Member Licensed User Longtime User Jul 14, 2011 #1 I have just started with B4A and am struggling connecting to my SQLite 3.x database. I also notice that when I use SQLite Database Browser to try open any of the databases created by B4A (“1.db” from the DBUtils sample) it gives an error and says “File is not a SQLite 3 database.” I am obviously missing something here, can you help?
I have just started with B4A and am struggling connecting to my SQLite 3.x database. I also notice that when I use SQLite Database Browser to try open any of the databases created by B4A (“1.db” from the DBUtils sample) it gives an error and says “File is not a SQLite 3 database.” I am obviously missing something here, can you help?
M Merlot2309 Active Member Licensed User Longtime User Jul 14, 2011 #2 Hello, Which tool do you use to maintain the database? I always rename the extension of the file from .sqlite to .sql Helen. Upvote 0
Hello, Which tool do you use to maintain the database? I always rename the extension of the file from .sqlite to .sql Helen.
D devlei Active Member Licensed User Longtime User Jul 14, 2011 #3 On the desktop, SQLite Database Browser. On the device, aSQLite Manager. Upvote 0
M Merlot2309 Active Member Licensed User Longtime User Jul 14, 2011 #4 Hello, Is the encoding set to UTF-8? When you open the database in Notepad, does it start with Helen. Upvote 0
Hello, Is the encoding set to UTF-8? When you open the database in Notepad, does it start with Helen.
D devlei Active Member Licensed User Longtime User Jul 14, 2011 #5 Thanks for your reply. Opening it in Notepad gives: How do I set encoding to UTF-8? Upvote 0
M Merlot2309 Active Member Licensed User Longtime User Jul 14, 2011 #6 Hi, I never used DBUtils (yet). But did you try renaming the extension of the db file to .sql? You can check the database records with: Mozilla Firefox has a great plugin: SQLite Manager (do a Google search). In this SQLite Manager you connect your database and will see immediately if the records are looking ok. In the "db settings" tab there is a field: Encoding. Standard this is set to UTF-8. Helen. Upvote 0
Hi, I never used DBUtils (yet). But did you try renaming the extension of the db file to .sql? You can check the database records with: Mozilla Firefox has a great plugin: SQLite Manager (do a Google search). In this SQLite Manager you connect your database and will see immediately if the records are looking ok. In the "db settings" tab there is a field: Encoding. Standard this is set to UTF-8. Helen.
tcgoh Active Member Licensed User Longtime User Jul 16, 2011 #7 Hi, sorry to steal this thread I have a .sl3 database from Basic4ppc, could this be used in basic4andriod? Thanks Upvote 0
Hi, sorry to steal this thread I have a .sl3 database from Basic4ppc, could this be used in basic4andriod? Thanks
M Merlot2309 Active Member Licensed User Longtime User Jul 16, 2011 #8 Hi, Yes, the same databases can be used in Android, Windows and WM. Helen. Upvote 0