pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
moving data to from ms sql server via SSIS
2+ messages / 2 participants
[nested] [flat]

* moving data to from ms sql server via SSIS
@ 2018-08-15 18:03 cosmin ioan <oracos@gmail.com>
  2018-08-15 18:09 ` Re: moving data to from ms sql server via SSIS Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: cosmin ioan @ 2018-08-15 18:03 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

hi folks,
we're trying to phase out MS SQL Server and we're trying to understand the
easiest way to move data from MS SQL Server to postgres, via SSIS, say via
ODBC, OleDB or .Net drivers, and basically create new tables & move data,
into the target postgres db.  What drivers would be the best/most flexible?

thanks much for any info or white papers on the topic,
Cos

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: moving data to from ms sql server via SSIS
  2018-08-15 18:03 moving data to from ms sql server via SSIS cosmin ioan <oracos@gmail.com>
@ 2018-08-15 18:09 ` Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joshua D. Drake @ 2018-08-15 18:09 UTC (permalink / raw)
  To: cosmin ioan <oracos@gmail.com>; pgsql-general@lists.postgresql.org

On 08/15/2018 11:03 AM, cosmin ioan wrote:
> hi folks,
> we're trying to phase out MS SQL Server and we're trying to understand 
> the easiest way to move data from MS SQL Server to postgres, via SSIS, 
> say via ODBC, OleDB or .Net drivers, and basically create new tables & 
> move data, into the target postgres db.  What drivers would be the 
> best/most flexible?
>
> thanks much for any info or white papers on the topic,

A *lot* of this is: it depends

However, a pretty simple way is to use either FDWs from PostgreSQL or 
linked tables in MSSQL. It would be easy enough for example to have 
table ms.foo which has data and then table postgres.foo that is empty. 
If ms.foo is linked (or and FDW table) you can use standard SQL to do 
things like INSERT INTO (SELECT * FROM).

Of course if you can take the outage and you prep PostgreSQL 
appropriately you could also just dump out to csv or tab delimited files 
and load them with COPY.

JD


-- 
Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc
***  A fault and talent of mine is to tell it exactly how it is.  ***
PostgreSQL centered full stack support, consulting and development.
Advocate: @amplifypostgres || Learn: https://postgresconf.org
*****     Unless otherwise stated, opinions are my own.   *****





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-08-15 18:09 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-08-15 18:03 moving data to from ms sql server via SSIS cosmin ioan <oracos@gmail.com>
2018-08-15 18:09 ` Joshua D. Drake <jd@commandprompt.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox