Link to home
Start Free TrialLog in
Avatar of Cwinde01
Cwinde01

asked on

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

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.
Avatar of Toms Edison
Toms Edison
Flag of India image

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
Avatar of Cwinde01
Cwinde01

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of awking00
awking00
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
awking00 do you have code example that I could use in Vb.net?  I am using the excel com object.
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.
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