Re: regarding schema only migration from sqlserver to postgres with runmtk.sh

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: Durgamahesh Manne <maheshpostgres9(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: regarding schema only migration from sqlserver to postgres with runmtk.sh
Date: 2016-06-15 20:30:57
Message-ID: CAKFQuwZRq+J3-O9wfb+cc1LP7=zqP=yJ0rPcgWQnH8tnva6VOw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 15, 2016 at 11:27 AM, Durgamahesh Manne <
maheshpostgres9(at)gmail(dot)com> wrote:

> may i know recommended approach to migrate the tables from sql server to
> postgresql instead of using 3rd party tools
>
>
​Answering this specifically.

There are none. The community PostgreSQL project maintains no tools that
speak to SQL Server.

One possible option to use the PostgreSQL's FDW capabilities with a
suitable third-party extension that does talk to SQL Server.

The other is to dump plain SQL, hopefully standard-conforming, INSERT
statements from the SQL Server and load them into PostgreSQL via psql.

I suppose SQL Server has some means to export in TSV/CSV or other
row-oriented structured output. The \copy psql meta-command or COPY SQL
​command could load that data.

Depending on the table structures having SQL Server dump the DDL (i.e.,
CREATE TABLE) for the tables and loading them via psql might be possible as
well.

​One area that the commercial space ​helps fulfill is inter-vendor
inter-operability tools. While this is a boon to the PostgreSQL community
as matter of practicality support for those tools. Before using said tools
you should ensure that you can reliably connect, using the standard tools,
to the databases in question and perform general actions thereon. Failures
there should be resolved first and the communities can help you with that.

David J.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2016-06-15 20:34:00 Re: regarding schema only migration from sqlserver to postgres with runmtk.sh
Previous Message Jan de Visser 2016-06-15 20:17:00 Re: Moving from PHP to Java: A result was returned when none was expected.