Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

Posted on 2008-10-20
6
923 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
ID: 22758102
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
ID: 22758261
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 32

Accepted Solution

by:
awking00 earned 500 total points
ID: 22758859
Rather than export Oracle table to excel, import Oracle table from excel. See attached.
excel-oracle-table.txt
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

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

Expert Comment

by:awking00
ID: 22760587
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
ID: 22764962
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

860 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