Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 6th, 2004, 09:53 AM
Preet Preet is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 1 Preet User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Data From Oracle and writing in Excel file

Hi,

WISH YOU A VERY HAPPY NEW YEAR.

I am working with oracle since last 2 months,
so not very good with it.

Question: I have few queries which are fine and are simple ones. I now need to dump the result of these queries into an
excel file without using any other languages like Java or VB or....

Any help would be appreciated.

Thanks

Reply With Quote
  #2  
Old January 6th, 2004, 05:34 PM
shammat shammat is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Oct 2003
Location: Munich, Bavaria
Posts: 1,007 shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level)shammat User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 13 h 56 m 17 sec
Reputation Power: 67
There is a simple "workaround": save the data as a text file with the extension xls and delimit the columns with tabs.
Excel will happily open that
Drawback is, that it will not detect non-character data correctly (or not always, depends on your data, especially dates are a problem).

With Java you can use Jakarta's POI libraries which can write native Excel files without the need of Excel (or even a Windows OS):

http://jakarta.apache.org/poi/

With VB you should be able to do it via OLE automation.

Reply With Quote
  #3  
Old January 12th, 2004, 09:59 AM
victorpendleton victorpendleton is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2003
Location: No es importante
Posts: 2,065 victorpendleton User rank is Private First Class (20 - 50 Reputation Level)victorpendleton User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 6 h 44 m 30 sec
Reputation Power: 8
SPOOL ON dump.tab;
SELECT * FROM some_table
SPOOL OFF;

Reply With Quote
  #4  
Old January 14th, 2004, 09:20 AM
gjlinker gjlinker is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Manchester, UK
Posts: 23 gjlinker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
You could use SQL*XL. It is an addin for Excel that just takes your SQL and puts all the results in the spreadsheet. As easy as that!

Find SQL*XL at www.oraxcel.com

If you want to use it for other database types you need SQL*XL ADO as well.

Best regards, Gerrit-Jan Linker
Linker IT Consulting Limited
www.oraxcel.com

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Data From Oracle and writing in Excel file


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT