Re: Dump from mssql

From: Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>
To: Sidar Lopez Cruz <sidarlopez(at)hotmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Dump from mssql
Date: 2003-02-27 15:21:58
Message-ID: 1046359318.1015.582.camel@camel
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

If none of your data contains commas, you can load it in with copy,
changing delimiters to , and then update the fields to strip out the "
once the data is loaded.

If your data does contain commas (,) you'll need to do some awk/sed/perl
magic to better delimit your file (perhaps a @@@ between each field?)
Actually the DTS program might allow you to do this as well.

Robert Treat

On Wed, 2003-02-26 at 13:46, Sidar Lopez Cruz wrote:
> how can i dump plaint text files from mssql to postgresql 7.3
> the file format is...
>
> "555555555","some people name",3
> ....
>
> the table in mssql is
>
> create table people (id varchar(20),name varchar(200),id_document
> bigint)
> and the same in postgresql
>
> remember that the file was generated by mssql with data transformation
> program (DTS)
>
> S.O.S. i need to do this... for begin in postgresql?
>
> :-) Sidar Lopez Cruz
> - Cero Riesgo, S.A.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Stephen Howie 2003-02-27 15:35:17 FATAL: RelationBuildTriggers: 1 record(s) not found for rel pg_shadow
Previous Message Andreas Schmitz 2003-02-27 09:08:28 select database_size