Hello hi CSPro Users,
I have a CSDB file, I need to query all records from it and Insert into Relational database like Maria DB. How do I perform this locally?
I have a "Transportation.csdb", which contains all information about transportations collected from the field, now I need to write a logic or sql script to fetch all the data and insert into Maria DB table called Transportations. How do I do it?
I need help please, Thanks in advanced.
CSDB to SQL Database
-
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
CSDB to SQL Database
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Re: CSDB to SQL Database
Hi Munirmdee1,
In the past, I used several ways to perform this, among others, for CSLog:
a) A direct and easy way was to use an existing GUI version of this Python package (https://github.com/techouse/sqlite3-to-mysql) that was from this user: https://github.com/ArefDev (Please see the attached PDF file) ). For copyrighting reasons, the repository containing the GUI version of the package has been deleted by Aref. However, you can still use the command line version from the owner of the package: Klemen Tusar (Techouse).
b) Installing CSWeb on Internet, LAN or local computer with MariaDB as database server and Sync the CSDB file to CSWeb. After, you can use this guide: https://www.csprousers.org/help/CSWeb/d ... tings.html to process case to your MariaDB database and having the your whole CSDB transferred to MariaDB.
c) Before CSDB and Before Greg shared a tool, MyCSPro, with me in 2012, I used some tools such as: https://dbconvert.com/ and some workarounds to send legacy *.dat file to MySQL. This tool can be also used to transfer SQLite files (CSDB) to MariaDB. Similar tools can be downloaded here: https://www.jetbrains.com/datagrip/?var=light
Hope this help you!
In the past, I used several ways to perform this, among others, for CSLog:
a) A direct and easy way was to use an existing GUI version of this Python package (https://github.com/techouse/sqlite3-to-mysql) that was from this user: https://github.com/ArefDev (Please see the attached PDF file) ). For copyrighting reasons, the repository containing the GUI version of the package has been deleted by Aref. However, you can still use the command line version from the owner of the package: Klemen Tusar (Techouse).
b) Installing CSWeb on Internet, LAN or local computer with MariaDB as database server and Sync the CSDB file to CSWeb. After, you can use this guide: https://www.csprousers.org/help/CSWeb/d ... tings.html to process case to your MariaDB database and having the your whole CSDB transferred to MariaDB.
c) Before CSDB and Before Greg shared a tool, MyCSPro, with me in 2012, I used some tools such as: https://dbconvert.com/ and some workarounds to send legacy *.dat file to MySQL. This tool can be also used to transfer SQLite files (CSDB) to MariaDB. Similar tools can be downloaded here: https://www.jetbrains.com/datagrip/?var=light
Hope this help you!
G.VOLNY, a CSProuser from Haiti, since 2004
-
- Posts: 1851
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: CSDB to SQL Database
The CSPro DB file is a SQLite file, so you can open that file in a program such as DB Browser for SQLite and then export the database. (In that tool, you select File -> Export -> Database to SQL file.) Then you should be able to import that SQL file in MariaDB.
-
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
Re: CSDB to SQL Database
@htuser
Thank you very much, this will help
Thank you very much, this will help
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
-
- Posts: 79
- Joined: August 17th, 2015, 9:32 am
- Location: Dar es Salaam, Tanzania
Re: CSDB to SQL Database
@Gregory Martin
Thank you Greg, will work on that too
Thank you Greg, will work on that too
Munir Mdee
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com
Software Programmer
National Bureau of Statistic (NBS)
Jakaya Kikwete Road,
P.O.Box 2683,
Dodoma,TANZANIA
Mob: +255 755 740090
Email: munir.mdee@nbs.go.tz
munirmdee@gmail.com