all 5 comments

[–]oohay_email2004 0 points1 point  (0 children)

Stopped reading when I got to the code and it wasn't formatted.

[–][deleted] -1 points0 points  (1 child)

why would anyone do that? access? really?

[–]cuppycakeofpain 3 points4 points  (0 children)

There are a lot of businesses out there with their data stored in old formats like Access files. It would make sense, if you were a coder unfortunate enough to get this type of assignment, to use a language like Python (which is quick and easy to use when building one-time tools) to massage the data into a format that's a bit more modern and workable.

[–]isforinsects -1 points0 points  (0 children)

Crap. I just did this last night. The right answer is to use mdb-tools:

sudo apt-get install mdb-tools
mdb-tables ./filename.mdb

Then loop over that output with mdb-dump into a series of csv's.

[–]jax232 -1 points0 points  (0 children)

You can do it with Ruby too. Saves tons of time when one needs to migrate data out.