X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8AEE1475E82 for ; Mon, 24 Feb 2003 15:09:48 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 58241-03 for ; Mon, 24 Feb 2003 15:09:20 -0500 (EST) Received: from hotmail.com (oe12.law14.hotmail.com [64.4.20.116]) by postgresql.org (Postfix) with ESMTP id 50BBF4758BD for ; Mon, 24 Feb 2003 14:31:57 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 24 Feb 2003 11:31:57 -0800 X-Originating-IP: [196.40.3.198] From: "Sidar Lopez Cruz" To: Subject: MSSQL to PostgreSQL Date: Mon, 24 Feb 2003 13:38:35 -0600 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0083_01C2DC0A.0768FD60" 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: 24 Feb 2003 19:31:57.0512 (UTC) FILETIME=[64FA9480:01C2DC3B] X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/375 X-Sequence-Number: 7573 This is a multi-part message in MIME format. ------=_NextPart_000_0083_01C2DC0A.0768FD60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable What do i got to do, when i pass information from mssql to PostgreSQL, 1. i got a text file with this information.. "1-0101-0202","SOME PEOPLE NAME",3 ... this file format was exported from mssql, to text file... the table definition in PostgreSQL is create table sujetos (cedula varchar(20), nombre varchar(200), id_tipo_doc = bigint); when i use the command copy into sujetos from ... i got an error like int8 error .... from PostgreSQL I try to conver the windows special characters, whit tr in linux, and awk, = to form sql syntax and then execute the file with \i in postgresql, but i g= ot an error, because the number of records in text file is 5,000,000 I don't know how to solve the problem... 2. how configure my PostgreSQL to manages dates like (mm/dd/yyyy), or what = i got to do? :-) Sidar Lopez Cruz - Cero Riesgo, S.A. ------=_NextPart_000_0083_01C2DC0A.0768FD60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
What do i got to do, when i pass informati= on from=20 mssql to PostgreSQL,
 
1. i got a text file with this=20 information..
"1-0101-0202","SOME PEOPLE NAME",3<= /DIV>
...
this file format was exported from ms= sql, to=20 text file...
the table definition in PostgreSQL is
create table sujetos (cedula varchar(20), = nombre=20 varchar(200), id_tipo_doc bigint);
 
when i use the command copy into sujetos f= rom=20 ...
i got an error like int8 error .... from= =20 PostgreSQL
 
I try to conver the windows special charac= ters,=20 whit tr in linux, and awk, to form sql syntax and then execute the file wit= h \i=20 in postgresql, but i got an error, because the number of records in text fi= le is=20 5,000,000
 
 
I don't know how to solve the=20 problem...
 
2. how configure my PostgreSQL to manages = dates=20 like (mm/dd/yyyy), or what i got to do?
 

:-) Sidar Lopez Cruz
- Cero Riesgo,= =20 S.A.
------=_NextPart_000_0083_01C2DC0A.0768FD60--