Importing Data from a Microsoft Access File on a Mac - macos

I have an MS-Access mdb file that I need to import data from into my mysql instance. I am on a mac, is there any free/OSS tools that allow me to do that? If not, is there a free/OSS JDBC driver that I can use to extract the data I need?
Thanks.

Have a look at Jackcess. Note that this doesn't support Access 97 databases, however, only 2000+.
For Access 97, the only thing I'm aware of is mdbtools, but that's a C library, so you'll have to write some JNI glue code if you want to use it from Java; also, it's not maintained anymore, to the best of my knowledge.

UCanAccess is a pure-Java JDBC driver that can read from and write to Access 2000 and newer databases. (Access 97 files are supported read-only.) It will work on any machine that runs Java.
For more details see
Manipulating an Access database from Java without ODBC

Is your Access MDB on mac?
Does the mac Access have the option of using linked tables?
If so, you can create a Linked Table from Access MDB to mySQL. Then, you could treat mysql tables as if it were part of MS-Access.
EDIT: See if this helps.

You could export the MDB file using something like this. This won't help you if you need to do it from within your app, but if you are ok exporting the data then using it, then this should help.

I do the following way to convert;
Download ACCDB MDB Explorer
http://accdb-mdb-explorer.en.softonic.com/mac
Open the MDB file
Export as SQL
Import in MySQL using MySQL Workbench.
Hope it helps..

Related

GoLang and opening MS SQL Compact files (.sdf)

As the title suggests, I'm attempting to open an SDF/MSSQL CE database in GoLang. Is this possible?
The GoLang Libraries I've found do not appear to suppot MSSQL CE database connections.
I hope this is not a duplicate, but I can not find info online
I'm afraid it would hardly be possible to work with these files directly as they merely are on-disk storage format, and note that MSSQL DBs of all flavors use .sdf as the extension of the file names of their DBs, so by itself they mean nothing.
OTOH, one direct way to approach this problem would be using
OLE DB layer.
You can also try to use
https://github.com/denisenkom/go-mssqldb
to connect to MSSQL Express instance like that:
sqlserver://sa#localhost/SQLExpress?database=master&connection+timeout=30

How to connect database with test complete tool

I want to connect with my MySQL database with the help of test complete. I am able to connect with MySQL Work Bench but I never try with test complete tool.
you can use a script in any language php, python, java ....etc. and call it with test complete
for example to use python you can use this code
import mysql.connector
cnx = mysql.connector.connect(user='scott', password='tiger',
host='127.0.0.1',
database='employees')
cnx.close()
you find read more here
http://dev.mysql.com/doc/connector-python/en/connector-python-example-connecting.html
good luck!
You can use the corresponding OLE DB or ODBC Provider to work with your database from TestComplete. Find a suitable connection string here and then use one of the approaches to work with a DB described in the Working With Databases help topic.
Please note that you may need to download and install MySQL OLE DB or ODBC Provider first.

how to use derby db data with Lazarus

I have a java program using a derby db in Eclipse. I want to use this derby db data with a new program I am about to create with the Lazarus ide. Can I connect direct to the derby db, if so how. Or do I need to export the derby db in some way to use with the Lazarus ide, if so how would I do this?
if you decide with export variant, then .csv (comma separated value) is probably the best inter database.
I have some experience with tdbf.
But from what I've read sqlite will be the best option.
I'm sorry for posting this as answer i have only 42 points reputation and can't post it as comment (need 50 for it)
Does derby support ODBC? Lazarus has a ODBC connection that can be used to connect databases that are not directly supported.
I searched quickly, but mostly saw references to older commercial Derby ODBC drivers. And it will probably depend on OS.

accessing a database from ruby using an odbc driver (Remedy)

I have the Remedy odbc driver installed on my machine. I am able to pull down data from Remedy via excel just fine specifying this driver in my connection.
Is there any way I could use this driver from within Ruby / Ruby on rails to connect to and read from the DB?
Many thanks!
I have not found a way to use the Remedy ODBC driver from Ruby. Also, I am suspecting that using the driver which seems to be quite antiquated and is already throwing some arcane errors when used from Excel might not be simple to use.
I was able to connect through R via RODBC and thus an R script that would pull the data for you and write to CSV might be a solution.
What I am actually using - which to my mind is the simplest way of achieving this - is talking directly to the Remedy SQL backend. All that you will have to do is parse the data upon pulling it from DB which is very easy to set up (priorities, service types, statuses are stored as integers and not actual names and timestamps are in epoch format).

OWB: Problem integrating external database with JDBC

we're currently building a data warehouse using OWB (Oracle Warehouse Builder).
One of the DCS (data capturing systems) is a proprietary database (PI by Osisoft Inc); we want to integrate it using JDBC.
The repository is located on a Linux system (RHEL 5.3, Oracle 11.2.0.2, OWB 11.2.0.2),
I'm connecting from a Windows XP system (OWB 11.2.0.2).
According to the OWB documentation, I should copy the JDBC jar file to
$OWB_HOME/owb/lib/ext, add a new platform (using OMB+) and then add a new location.
I've tried this with SQLite, and everything seems ok, but with PI, "Test connection" in OWB doesn't give me any feedback, and when I try to get the list of tables/views from the source system, it hangs.
Some questions regarding this:
is the JDBC jar file required on the "Server" side (RHEL 5.3) or "Client" side (Windows XP) (sorry if I'm using the wrong terminology, I'm still getting started with OWB)?
the JDBC driver requires a .dll (Win) / .so (Linux); is this possible with OWB? Or does OWB accept only "pure" JDBC drivers?
is there any possibility to debug the JDBC access (some kind of log file, perhaps)?
I'd be thankful for any hints on solving this.
Kind regards
Frank
Since we couldn't get this to work, we changed our approach:
OWB calls a user defined activity A1
A1 executes a shell script S1 on the Linux server
S1 calls a small java program J1 (with the classpath settings etc.)
J1 connects to the proprietary database using JDBC, fetches the data and writes it to a .csv file
OWB then loads this .csv file using an external table
Kind regards
Frank

Resources