November 18, 2010 at 12:04 am
Hi All,
Warm Greetings!!!
I'm new to SSIS, just 2weeks old, am facing very much trouble to export data from sql table to multiple csv worksheets(sheet1,sheet2,.....)
In SQL table i've more than 65536 records (for eg., 70000 records), while exporting table to csv only 65536 records got exported in sheet 1 remaining 4464 records must come in sheet 2 but it wasn't available.
I used DataFlowTask -> OLEDB Source & FlatFileDestination tools.
Pls help me out to resolve this issue, am awaiting for the reply
November 18, 2010 at 2:42 am
i think if you create the CSV, it would have ALL the records...it's just earlier versions of excel would only DISPLAY 65536 rows.
open the file up in an enhanced raw text editor like EditPlus, instead of Excel and you can see all 70K rows exist.
i personally have lots of data extraxts with more rows than that in a csv....
you could also upgrade to a newer version of excel to see all the rows as well.
Lowell
November 18, 2010 at 4:31 am
Actually, i've manually created one .csv file in C:\Temp\ and assigned the column names which i need and from OLEDB source getting the data from Table and passing it to FlatFileDestination.
In FlatFileDestination, i've called FlatFileConnectionManager, and selected Delimited format
In it's general tab --> FileName - i browsed my C:\Temp\test.csv file
and in FlatFileDestination i called FlatFileConnectionManager and click ok.
by this way am facing that records issue with sheets.
November 18, 2010 at 11:21 am
So you're still facing the issue with records not showing in your sheets? (I am a bit confused by your reply, hence my question).
If you export all your data to a .csv file, then all the data should be there.
Don't open your .csv with Excel, but with a decent text editor. (Textpad, UltraEdit, Notepad++ or even the built-in windows Wordpad or notepad).
It is Excel that is having troubles with the number of rows, not the .csv file.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
January 15, 2014 at 1:14 am
Koel - I've a requirement to run 2 separate sql commands and post both result sets in separate csv tabs (sheet1.. sheet2) within a single csv file.. Can you or anyone else in the forum help me out on this.
Thanks
Kapil
January 15, 2014 at 3:07 am
madan.kapil-1069442 (1/15/2014)
Koel - I've a requirement to run 2 separate sql commands and post both result sets in separate csv tabs (sheet1.. sheet2) within a single csv file.. Can you or anyone else in the forum help me out on this.Thanks
Kapil
You cannot have two sheets in a csv file, a csv file is one sheet.
You can only have multiple sheets in a workbook (.xls or .xlsx)
Far away is close at hand in the images of elsewhere.
Anon.
January 16, 2014 at 12:20 am
It's quite advanced, especially given your experience with the product, but this article is relevant.
Also, as others have mentioned, please stop referring to multi-tab CSV files: they do not and cannot exist.
I believe that you are looking for an export to Excel (XLS or XLSX) which does, of course, support multiple tabs ('worksheets').
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
January 16, 2014 at 1:11 am
Thanks David & Phil.. But I was actually looking for a multi-tab csv since I am able to add worksheets/ tabs to a csv file manually. so thought that it is possible via automation as well.. But since its not possible, we are going ahead with multi-file logic now.
Thanks again.
January 16, 2014 at 1:14 am
madan.kapil-1069442 (1/16/2014)
Thanks David & Phil.. But I was actually looking for a multi-tab csv since I am able to add worksheets/ tabs to a csv file manually.
A csv file is not an Excel file!
It's not because you can open a csv file in Excel, that they are the same.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
January 16, 2014 at 1:22 am
But I was actually looking for a multi-tab csv since I am able to add worksheets/ tabs to a csv file manually
Please post an example of one of these.
The absence of evidence is not evidence of absence
- Martin Rees
The absence of consumable DDL, sample data and desired results is, however, evidence of the absence of my response
- Phil Parkin
January 16, 2014 at 1:28 am
Phil - As rightly pointed out by Koen that just because I am able to open csv with excel, csv is not an excel ! May be I am able to add tabs to it by opening it in excel.
January 16, 2014 at 1:53 am
madan.kapil-1069442 (1/16/2014)
May be I am able to add tabs to it by opening it in excel.
When you open a csv file in Excel, Excel loads it as a sheet in a new workbook. Therefore you can then add further sheets to the workbook and save the workbook as a xls or xlsx Excel file. If you try to save the workbook as a csv, Excel will warn you that only one of the sheets can be saved as a csv file.
Far away is close at hand in the images of elsewhere.
Anon.
Viewing 12 posts - 1 through 11 (of 11 total)
You must be logged in to reply to this topic. Login to reply