Solved

What is the quickest way to export an Oracle table to Excel?

Posted on 2008-10-20
6
894 Views
Last Modified: 2013-12-18
What is the quickest way to export an Oracle data table to an excel sheet using Vb.Net (2008)?  I am currently reading in one row at a time and writing it to an excel sheet using a dataset.  However, the process takes hours to run.  There are approximately 60,000 rows to export.
0
Comment
Question by:Cwinde01
6 Comments
 
LVL 13

Expert Comment

by:TechTiger007
Comment Utility
Bind your table to a datagrid or grid view
then export the datagrid or grid view to excel

Datagrid to excel
http://www.codersource.net/published/view/283/exporting_data_grid_to_excel.aspx

gridview to excel
http://www.xtremedotnettalk.com/showthread.php?t=93028

Hope that helps
0
 

Author Comment

by:Cwinde01
Comment Utility
Though it appears TechTiger007 solution would work, I am looking for something that will not use a grid or require any form objects.  I have created a report engine that creates multiple excel reports using data from Oracle tables.  However one sheet on the report is a data dump into excel from an Oracle table.  An example of 1 report would be an excel workbook with a summary sheet, trended data sheet, and finally a detail sheet (data dump).  This a commad line application only, no forms.
0
 
LVL 31

Accepted Solution

by:
awking00 earned 500 total points
Comment Utility
Rather than export Oracle table to excel, import Oracle table from excel. See attached.
excel-oracle-table.txt
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 

Author Comment

by:Cwinde01
Comment Utility
awking00 do you have code example that I could use in Vb.net?  I am using the excel com object.
0
 
LVL 31

Expert Comment

by:awking00
Comment Utility
Sorry, I don't use Vb.net. Not sure, but perhaps by importing the table using the excel query, there is underlying vb code that is written that could be accessed. Hopefully, some vb/excel experts might better be able to help.
0
 
LVL 4

Expert Comment

by:hqassap
Comment Utility
Hello,

Using TOAD or SQL Navigator (both are products of Quest)
Just right click on the query output and save as and then choose XLS File

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now