Alright, this will probably sound a bit silly. The more I think about it, the sillier it sounds.
Background:
The company I’m working for hired a guy about a year ago to write some software for them. This software (written in VB6) is for a drilling supplies manufacturer (sensors, bits, etc). Anyway, the software is installed at a rig site, and provides a plethora of information (bit depth, rpms, etc). Now, a reading is taken every 10 seconds, and saved to a file. (I was initially told a local SQL database, but that’s proved incorrect.) This file, which can apparently only be opened in SQLite Database Browser (opening it in any text editor results in looking at garbage, essentially).
Move Forward:
I was hired to write a program that takes the data that is saved, and create a daily report based upon it. Initially, I was told that there was a MySQL database on the local machine that is storing the information. However, I just recently found out that that is not the case. It’s stored in this file. I can open the file in SQLite Database Browser, and export it as a .sql file, and that is all awesome and such. Problem is, my employer wants this done programmatically.
My Question:
Is there a way to convert this SQLite file to .sql programmatically, or what is the best route to get this information uploaded into a local MySQL database? Thank you for much for any assistance.
Have you considered just using a [the] SQLite data provider for .NET and opening and reading the data out that way? You could easily read the data out of the SQLite database, and the write it into the MySQL database (using the appropriate MySQL data provider).
Here’s the SQLite data provider I’ve used in the past: http://sqlite.phxsoftware.com/ I’m not sure if there’s something newer (or better).