pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
exporting data
3+ messages / 3 participants
[nested] [flat]

* exporting data
@ 2003-07-07 17:44  Sidar Lopez Cruz <sidarlopez@hotmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Sidar Lopez Cruz @ 2003-07-07 17:44 UTC (permalink / raw)
  To: pgsql-admin

which is the best tool for exporting data from mssql to postgresql
i try with pgAdmin II, but it's slow

i try directly by odbc from mssql but don't work



:-) Sidar Lopez Cruz
- Cero Riesgo, S.A.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: exporting data
@ 2003-07-08 03:02  Devi Munandar <devi@informatika.lipi.go.id>
  parent: Sidar Lopez Cruz <sidarlopez@hotmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Devi Munandar @ 2003-07-08 03:02 UTC (permalink / raw)
  To: Sidar Lopez Cruz <sidarlopez@hotmail.com>; +Cc: pgsql-admin

Dear Admin,

Same Problem with Mr.Sidar Lopez Cruz too,but I want to Migration my data from microsoft Excel to Postgresql, there are any possible to Migration..???

best regard,

-devi munandar
  ----- Original Message ----- 
  From: Sidar Lopez Cruz 
  To: pgsql-admin@postgresql.org 
  Sent: Tuesday, July 08, 2003 12:44 AM
  Subject: [ADMIN] exporting data


  which is the best tool for exporting data from mssql to postgresql
  i try with pgAdmin II, but it's slow
   
  i try directly by odbc from mssql but don't work
   
   

  :-) Sidar Lopez Cruz
  - Cero Riesgo, S.A.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: exporting data
@ 2003-07-08 03:27  Rudi Starcevic <rudi@oasis.net.au>
  parent: Devi Munandar <devi@informatika.lipi.go.id>
  0 siblings, 0 replies; 3+ messages in thread

From: Rudi Starcevic @ 2003-07-08 03:27 UTC (permalink / raw)
  To: pgsql-admin

Hi,

I've had to do this several times.
So far I've found no simple answer/way.

This is how I do it.
a) export excel file to tab seperated file.
b) Import complete csv/text file into a table using copy. ( Eg. temp_table )
c) Select from that temp table into new tables to build the new database.
Here's and example script:
INSERT INTO grounds
(
gt_id,
reg_id,
g_name,
g_address1,
g_country,
g_phone,
g_fax,
g_email,
g_url,
g_notes,
g_activities,
g_username,
g_pwd
)
SELECT
1,
1,
name,
location,
'Australia',
phone,
fax,
email_address,
domain_name,
notes,
activities,
'username',
'pwd'

FROM import_temp;

Sometimes SQL is not enough and I use scripts written in PHP or Perl or 
ColdFusion.

I save all my import scripts. eg. import01.sql, import02.sql, 
import03.php, so that I can easily reuse them.

Hope this brief response helps.

Cheers
Rudi.



Devi Munandar wrote:

> Dear Admin,
>  
> Same Problem with Mr.Sidar Lopez Cruz too,but I want to Migration my 
> data from microsoft Excel to Postgresql, there are any possible to 
> Migration..???
>  
> best regard,
>  
> -devi munandar
>
>     ----- Original Message -----
>     *From:* Sidar Lopez Cruz <mailto:sidarlopez@hotmail.com>
>     *To:* pgsql-admin@postgresql.org <mailto:pgsql-admin@postgresql.org>
>     *Sent:* Tuesday, July 08, 2003 12:44 AM
>     *Subject:* [ADMIN] exporting data
>
>     which is the best tool for exporting data from mssql to postgresql
>     i try with pgAdmin II, but it's slow
>      
>     i try directly by odbc from mssql but don't work
>      
>      
>
>     :-) Sidar Lopez Cruz
>     - Cero Riesgo, S.A.
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-07-08 03:27 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-07-07 17:44 exporting data Sidar Lopez Cruz <sidarlopez@hotmail.com>
2003-07-08 03:02 ` Devi Munandar <devi@informatika.lipi.go.id>
2003-07-08 03:27   ` Rudi Starcevic <rudi@oasis.net.au>

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