From sidarlopez@hotmail.com Wed Feb 26 18:40:08 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 481044758BD for ; Wed, 26 Feb 2003 13:40:08 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 05803-08 for ; Wed, 26 Feb 2003 13:39:57 -0500 (EST) Received: from hotmail.com (oe65.law14.hotmail.com [64.4.20.200]) by postgresql.org (Postfix) with ESMTP id 398A1474E5C for ; Wed, 26 Feb 2003 13:39:50 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 26 Feb 2003 10:39:50 -0800 X-Originating-IP: [196.40.3.198] From: "Sidar Lopez Cruz" To: Subject: Dump from mssql Date: Wed, 26 Feb 2003 12:46:19 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_005D_01C2DD95.0F2C9200" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 26 Feb 2003 18:39:50.0042 (UTC) FILETIME=[71B007A0:01C2DDC6] X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/408 X-Sequence-Number: 7606 This is a multi-part message in MIME format. ------=_NextPart_000_005D_01C2DD95.0F2C9200 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 prog= ram (DTS) S.O.S. i need to do this... for begin in postgresql? :-) Sidar Lopez Cruz - Cero Riesgo, S.A. ------=_NextPart_000_005D_01C2DD95.0F2C9200 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
how can i dump plaint text files from mssq= l to=20 postgresql 7.3
the file format is...
 
"555555555","some people name",3
....
 
the table in mssql is
 
create table people (id varchar(20),name= =20 varchar(200),id_document bigint)
and the same in postgresql
 
remember that the file was generated by ms= sql with=20 data transformation program (DTS)
 
S.O.S. i need to do this... for be= gin in=20 postgresql?

:-) Sidar Lopez Cruz
- Cero Riesgo,= =20 S.A.
------=_NextPart_000_005D_01C2DD95.0F2C9200-- From xzilla@users.sourceforge.net Thu Feb 27 15:23:12 2003 X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 38C334758E6 for ; Thu, 27 Feb 2003 10:23:12 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 44117-08 for ; Thu, 27 Feb 2003 10:23:01 -0500 (EST) Received: from localhost.localdomain (unknown [65.217.53.66]) by postgresql.org (Postfix) with ESMTP id B37D1475A3F for ; Thu, 27 Feb 2003 10:21:58 -0500 (EST) Received: from thorn.mmrd.com (thorn.mmrd.com [172.25.10.100]) by localhost.localdomain (8.12.5/8.12.5) with ESMTP id h1RFok6P003071; Thu, 27 Feb 2003 10:50:46 -0500 Received: from gnvex001.mmrd.com (gnvex001.mmrd.com [192.168.3.55]) by thorn.mmrd.com (8.11.6/8.11.6) with ESMTP id h1RFLwp04034; Thu, 27 Feb 2003 10:21:58 -0500 Received: from camel.mmrd.com ([172.25.5.213]) by gnvex001.mmrd.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id F3HTH3V1; Thu, 27 Feb 2003 10:21:58 -0500 Subject: Re: Dump from mssql From: Robert Treat To: Sidar Lopez Cruz Cc: pgsql-admin@postgresql.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 27 Feb 2003 10:21:58 -0500 Message-Id: <1046359318.1015.582.camel@camel> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/415 X-Sequence-Number: 7613 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.