I want to export the results into excel sheet by running the query in Teradata SQL Assistant.
I used copy paste but it didnt work
Thanks in advance.
If you return the answers to SQL Assistant you should be able to select Save Answerset from the File menu. You will then have the option to save it as a proper Excel file format.
If you export the answers to a flat file directly the delimited text file can in turn be opened with ease in Excel and then saved as a proper Excel file format (XLS, XLSX, etc.)
Select the whole excel worksheet you will paste into and set the number format to 'text'.
Now you can safely copy the data from the teradata sql assistant's query results and paste them into the spreadsheet.
Related
i have a table with over six millions rows and i want to query them and save the result as a google sheet document but I don't know how.
as well I would like to know how to save the result as a new table in the database
This code here should be able to make a new table from your query.
CREATE TABLE new_table AS
SELECT expressions
FROM existing_tables
[WHERE conditions];
Regarding the data transfer I would recommend using a converter website, like sql to xlsx and then opening the xlsx file in Google drive, that's at least how I move data from SQL to Google drive or Excel.
Teradata Studio Express, Version 16.2
I queried from an oracle database using TSE's SQL file editor (Since it is a non-TeraData database or else I would be using TSE's Teradata SQL editor). When querying from SQL File Editor, TSE provides the result within the SQL Results panel.
What I want to do is to export the result to an excel file but it does
not provide an option to do so. How do I approach this?
Below is a screenshot comparing result set panels. The left panel (querying from Teradata SQL Editor) has an option to export to excel but the right panel (Querying SQL File Editor) does not.
Finally figured it out.. Don't know why they don't provide a export option icon yet but here is solution:
Right click on the result table.
It will provides options. Select Export, then Current Result...
Then this window will appear (save it as a csv file and you should be able to open with Excel):
I am trying to merge 12 excel files (each having single excel-sheet) into single consolidated excel file that will have 12 excel-sheets using Microsoft.Office.Interop.Excel liabrary and following error:
"Excel cannot insert the sheets into the destination workbook, because it contains fewer rows and columns than the source workbook. To move or copy the data to the destination workbook, you can select the data, and then use the Copy and Paste commands to insert it into the sheets of another workbook."
I think its related to Microsoft Excel Application's DCOM objects permissions issue.
Can any one explains which type of permission are required to get the services of Microsoft Excel Application using DCOM Object.
Thanks.
I had this problem in Excel 2013. There was a setting in options, under Save, that created new workbooks as Excel 97-2003 workbooks. I changed this to Excel Workbook and the command started working.
I have an Excel sheet with more than 1000 records with customer details such as name, tele, address ...etc. and I want to know if I can save this sheet into a SQL Server database without inserting these records one by one from an aspx page, as I will have table in the database with customer details.
You can use SSMS's Import Data option, and use Excel as a data source and the table as the destination. This is a "run once" option. The second option, if you have to run this frequently, is to create an SSIS package for the import.
Is there a way to run a Teradata SQL query and then export the data to an external file?
For example, if I ran:
SELECT TOP 10
*
FROM
mydb.mytable
Could I write this in such a way that it will export to a CSV? Do I need to store my data in a temp table first and then do CREATE EXTERNAL TABLE? Any ideas would be appreciated - I've been returning data to R and then exporting, but there's no need for the intermediate step in some jobs.
There's no CREATE EXTERNAL TABLE in Teradata.
The only tool capable of exporting CSV directly is TPT (Teradata Parallel Transporter).
Otherwise you have to do the concat in your query using SELECT TRIM(col1) || ',' || TRIM(col2)... and then export based on your client's capabilities.