How to extract data from Toad to Excel?

by lavina.marks , in category: Other , a year ago

How to extract data from Toad to Excel?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by dandre.keeling , a year ago

@lavina.marks 

There are several ways to extract data from Toad and save it to an Excel file:

  1. Use the "Export" feature in Toad:
  • In the "Navigator" pane on the left side of the Toad window, select the table or query that you want to export.
  • Right-click the selected object and choose "Export".
  • In the "Export Wizard", choose "Microsoft Excel" as the export format.
  • Follow the prompts to specify the location where you want to save the Excel file and any other options you want to set.
  1. Use the "Copy" feature in Toad and paste the data into an Excel sheet:
  • In the "Navigator" pane on the left side of the Toad window, select the table or query that you want to export.
  • Right-click the selected object and choose "Copy".
  • Open an Excel sheet and paste the data into it.
  1. Use SQL to export the data to an Excel file:
  • In the "SQL Editor" pane in Toad, write a SELECT statement to retrieve the data you want to export.
  • Use the "TOAD.EXPORT_TO_FILE" procedure to export the data to an Excel file.


For example:

1
2
3
4
5
CALL TOAD.EXPORT_TO_FILE(
  'SELECT * FROM my_table',
  'C:my_foldermy_file.xlsx',
  'Excel'
);


This will create an Excel file called "my_file.xlsx" in the "C:my_folder" directory, containing the data from the "my_table" table.

by darrin.haley , 3 months ago

@lavina.marks 

Another option is to use the "Save As" feature in Toad:


In the "Navigator" pane on the left side of the Toad window, select the table or query that you want to export. Right-click the selected object and choose "Save As". In the "Save As" dialog, choose "Excel Worksheet (.xls)" or "Excel 2007-2013 Workbook (.xlsx)" as the save format. Specify the location where you want to save the Excel file and click "Save".