pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Migration from M$ SQL
2+ messages / 2 participants
[nested] [flat]

* Migration from M$ SQL
@ 2004-01-05 10:47 Amitava  Roy <amitavroy@rediffmail.com>
  2004-01-05 21:43 ` Re: Migration from M$ SQL Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Amitava Roy @ 2004-01-05 10:47 UTC (permalink / raw)
  To: pgsql-admin

Hi All,

In our company we are planning for a migration from an 
MS SQL/NT to PostgreSQL/Linux. The current database contains
mainly SQL standard data types(though a few user defined data types 
may be there), is using Triggers and Stored procedures.
I have already seen the migration howtos available at the PostgreSQL 
site. I have some questions to be cleared before we really start a
Pilot project for the planned migration:
1. How do we efficiently migrate data from MS to Pg? Is CSV good enough?
  The existing database size is around 25 GB.
2. Is there a systematic/regular mapping of SQL Scripts for MS to that 
  for Pg? In other words, is it possible to come up with say, sed 
  scripts, which would convert an MS Stored Procedure/Trigger to that 
  in Pg?
Thanks in advance.
A very happy New Year to all :)
-Amitava Roy. 

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

* Re: Migration from M$ SQL
  2004-01-05 10:47 Migration from M$ SQL Amitava  Roy <amitavroy@rediffmail.com>
@ 2004-01-05 21:43 ` Robert Treat <xzilla@users.sourceforge.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Robert Treat @ 2004-01-05 21:43 UTC (permalink / raw)
  To: Amitava Roy <amitavroy@rediffmail.com>; +Cc: pgsql-admin

On Mon, 2004-01-05 at 05:47, Amitava Roy wrote:
> Hi All,
> 
> In our company we are planning for a migration from an 
> MS SQL/NT to PostgreSQL/Linux. The current database contains
> mainly SQL standard data types(though a few user defined data types 
> may be there), is using Triggers and Stored procedures.
> I have already seen the migration howtos available at the PostgreSQL 
> site. I have some questions to be cleared before we really start a
> Pilot project for the planned migration:
> 1. How do we efficiently migrate data from MS to Pg? Is CSV good enough?
>   The existing database size is around 25 GB.

CSV is probably good enough; dump the files to CSV from M$ then use
PostgreSQL's COPY feature to copy the data into the requisite tables. It
will certainly take some time to move that much data, and I'd recommend
testing it first to make sure you don't have any "anomalies". 

> 2. Is there a systematic/regular mapping of SQL Scripts for MS to that 
>   for Pg? In other words, is it possible to come up with say, sed 
>   scripts, which would convert an MS Stored Procedure/Trigger to that 
>   in Pg?

I'd be very surprised if there were. AFAIK the syntax between m$ and
postgresql pl's isn't terribly compatible, and I think there are quirks
in how the two implementations actually work, so you'll want to test
this as well.

Robert Treat
-- 
Build A Brighter Lamp :: Linux Apache {middleware} PostgreSQL




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


end of thread, other threads:[~2004-01-05 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-01-05 10:47 Migration from M$ SQL Amitava  Roy <amitavroy@rediffmail.com>
2004-01-05 21:43 ` Robert Treat <xzilla@users.sourceforge.net>

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