pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jeff Eckermann <jeff_eckermann@yahoo.com>
To: Nefertiti Nefertiti <woymita@yahoo.fr>
To: pgsql-odbc@postgresql.org
Subject: Re: PostgreSQL - linked with MS Excel
Date: Wed, 8 Jun 2005 08:15:47 -0700 (PDT)
Message-ID: <20050608151547.30224.qmail@web20824.mail.yahoo.com> (raw)
In-Reply-To: <20050608144450.81036.qmail@web26607.mail.ukl.yahoo.com>

--- Nefertiti Nefertiti <woymita@yahoo.fr> wrote:

> Hello, please help me!!!!
> 
> I'm trying to export some data from PostgreSQL to MS
> Excel.
> Now my solution is to copy data on .CSV format and
> after convert theses files to .XLS format.
> I'm a new user of PosgreSQL and I wan't to know if
> there is a another way to export data from PSQL to
> Excel maybe through ODBC.

ODBC should work for you.  Assuming that you have the
psqlodbc driver installed, and that you have set up a
DSN for the PostgreSQL database, then just go through
"Data", "Import external data", "New database query"
(I don't know what those would be in French, sorry). 
Just follow the prompts from there.

MS Query, which Excel uses to get the data, has some
annoying limitations in its functionality, so you may
find that it will not do what you want.  In that case,
a more robust solution would be to write some VBA code
that fetches the data for you (ADO is a good choice
for this).  There are plenty of examples in the MS
Knowledge Base.

The code solution may be overkill, depending on how
often you want to do this import.  If the above
choices are not desirable, PostgreSQL -> .csv -> Excel
may be your best alternative after all.

> Are you able to help me? Would you have enough
> patience?
> Any information will be very important?
>  
> PS: I have WinXP + PostgerSQL 8.0.2  + Ms Excel.
> 
> Thanks, so much,
> Weymy.
> 
> 
> 		
> ---------------------------------
>  Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de
> stockage pour vos mails, photos et vidéos !
> Créez votre Yahoo! Mail  



		
__________________________________ 
Discover Yahoo! 
Get on-the-go sports scores, stock quotes, news and more. Check it out! 
http://discover.yahoo.com/mobile.html



view thread (3+ messages)  latest in thread

Message-ID: <20050608151547.30224.qmail@web20824.mail.yahoo.com>
Permalink:  ../20050608151547.30224.qmail@web20824.mail.yahoo.com/
Also on:    postgresql.org/message-id/20050608151547.30224.qmail@web20824.mail.yahoo.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-odbc@postgresql.org
  Cc: jeff_eckermann@yahoo.com, woymita@yahoo.fr
  Subject: Re: PostgreSQL - linked with MS Excel
  In-Reply-To: <20050608151547.30224.qmail@web20824.mail.yahoo.com>
  References: <20050608144450.81036.qmail@web26607.mail.ukl.yahoo.com> <20050608151547.30224.qmail@web20824.mail.yahoo.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