From: | Thomas Harold <thomas-lists(at)nybeta(dot)com> |
---|---|
To: | akp geek <akpgeek(at)gmail(dot)com> |
Cc: | pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Access to postgres conversion |
Date: | 2011-06-02 13:32:07 |
Message-ID: | 4DE790D7.5040004@nybeta.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 5/25/2011 3:42 PM, akp geek wrote:
> Dear all -
>
> I would like to know if any one has migrated database from
> MS access to Postgres . We use postgres 9.0.2 on solaris . Are there any
> open source tools that you have used to do this task. Can you please
> share your experiences ?
>
I rolled my own.
If the number of rows in the MDB table is not that many (under 100k),
then I'll create a new table up on pgsql, link to it with the ODBC
driver, and append from the source table to the pgsql table. You can
get away with larger appends if both systems are on the same network.
If it was a table with a few million rows, then I wrote a little VBA
snippet that created a pgdump compatible SQL text file from the source
data. To figure out the format, I just pgdump'd an existing table from
PostgreSQL, then patterned my SQL file after it. While it was extremely
fast at doing the conversion (both generating the SQL file and the time
it took for pgdump to process the SQL file), I only recommend that
method for cases where you have millions and millions of rows. Or a lot
of identical tables.
(The VBA module was about 100-150 lines of code in total.)
From | Date | Subject | |
---|---|---|---|
Next Message | eyal edri | 2011-06-02 13:54:44 | using jboss with ident auth |
Previous Message | salah jubeh | 2011-06-02 10:50:04 | Re: Table with active and historical data |