pg.ddx.io pgsql-odbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
PostgreSQL - linked with MS Excel 3+ messages / 3 participants [nested] [flat]
* PostgreSQL - linked with MS Excel @ 2005-06-08 14:44 Nefertiti Nefertiti <woymita@yahoo.fr> 2005-06-08 15:15 ` Re: PostgreSQL - linked with MS Excel Jeff Eckermann <jeff_eckermann@yahoo.com> 2005-06-08 15:44 ` Re: PostgreSQL - linked with MS Excel George Weaver <gweaver@shaw.ca> 0 siblings, 2 replies; 3+ messages in thread From: Nefertiti Nefertiti @ 2005-06-08 14:44 UTC (permalink / raw) To: pgsql-odbc 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. 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PostgreSQL - linked with MS Excel 2005-06-08 14:44 PostgreSQL - linked with MS Excel Nefertiti Nefertiti <woymita@yahoo.fr> @ 2005-06-08 15:15 ` Jeff Eckermann <jeff_eckermann@yahoo.com> 1 sibling, 0 replies; 3+ messages in thread From: Jeff Eckermann @ 2005-06-08 15:15 UTC (permalink / raw) To: Nefertiti Nefertiti <woymita@yahoo.fr>; pgsql-odbc --- 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: PostgreSQL - linked with MS Excel 2005-06-08 14:44 PostgreSQL - linked with MS Excel Nefertiti Nefertiti <woymita@yahoo.fr> @ 2005-06-08 15:44 ` George Weaver <gweaver@shaw.ca> 1 sibling, 0 replies; 3+ messages in thread From: George Weaver @ 2005-06-08 15:44 UTC (permalink / raw) To: Nefertiti Nefertiti <woymita@yahoo.fr>; pgsql-odbc Hi Weymy, You can link directly to your PostgreSQL database from Excel, and open PostgeSQL tables directly in Excel. You can do this by creating a DSN and .udl file (http://archives.postgresql.org/pgsql-odbc/2004-12/msg00056.php). Once you have created the udl file, open Excel and choose File - Open. Navigate to the directory where you created the udl file. in the file type selector box in the open file dialog select All Data Sources. You should see the udl file in the file selection pane. Select the udl file and click on Open. You should be presented with a list of your database tables. If you choose a table, it will be open as a new worksheet in Excel. HTH. George ----- Original Message ----- From: Nefertiti Nefertiti To: pgsql-odbc@postgresql.org Sent: Wednesday, June 08, 2005 9:44 AM Subject: [ODBC] PostgreSQL - linked with MS Excel 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. 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 ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2005-06-08 15:44 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2005-06-08 14:44 PostgreSQL - linked with MS Excel Nefertiti Nefertiti <woymita@yahoo.fr> 2005-06-08 15:15 ` Jeff Eckermann <jeff_eckermann@yahoo.com> 2005-06-08 15:44 ` George Weaver <gweaver@shaw.ca>
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