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.