pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sidar Lopez Cruz <sidarlopez@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: MSSQL to PostgreSQL
Date: Mon, 24 Feb 2003 13:38:35 -0600
Message-ID: <OE12SVvAyfxRydC3hSs000012ed@hotmail.com> (raw)

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 got 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.

Message-ID: <OE12SVvAyfxRydC3hSs000012ed@hotmail.com>
Permalink:  ../OE12SVvAyfxRydC3hSs000012ed@hotmail.com/
Also on:    postgresql.org/message-id/OE12SVvAyfxRydC3hSs000012ed@hotmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: sidarlopez@hotmail.com
  Subject: Re: MSSQL to PostgreSQL
  In-Reply-To: <OE12SVvAyfxRydC3hSs000012ed@hotmail.com>
  References: <OE12SVvAyfxRydC3hSs000012ed@hotmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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