Group: General Forum Members
Last Login: Monday, January 06, 2014 5:43 AM
|I have a requirement of loading 2 CSV files from shared location into a SQL table.
All 2 CSV files are in same format.
1. Sample Report for Samp Standards (SOV) Dev - August 2012.csv
2. Sample Unique Visitors Report for Samp Standards (SOV) Dev - Sun. 1 Jul. 2012 - Fri. 31 Aug. 2012 (1).csv
Data in the CSV files are as shown below:
Col1 Col2 Col3 Col4 Col5
# Student Class Grade
1 Ravi 10 I
2 Raj 10 II
I am trying to load the complete data into (as is shown above) the SQL table by taking CSV file connection.
and I am getting the following error:
The last row in the sample data is incomplete. The column or row delimiter is missing or the text is qualified incorrectly.
I dont have access to edit the .CSV files. Is there anyway we can get rid of this error?
Also, I tried using OLE DB Microsoft Jet 4.0 Provider connection to the CSV files folder with an OLE DB Source.
One strange problem i see here is,
The 2nd CSV file name is getting truncated in the data access mode table list, it is appearing as
'Sample Unique Visitors Report for Samp Standards (SOV) Dev - Su' whereas the complete name is 'Sample Unique Visitors Report for Samp Standards (SOV) Dev - Sun. 1 Jul. 2012 - Fri. 31 Aug. 2012 (1).csv'.
I tried passing this value using variable and failed.
Is there any file name length limitation for CSV files while using OLE DB connection?