Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

The last row in the sample data is incomplete. The column or row delimiter is missing or the text is qualified incorrectly. Expand / Collapse
Author
Message
Posted Thursday, September 13, 2012 1:36 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, April 08, 2014 7:20 AM
Points: 100, Visits: 141
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

Date 290112
Name Test
Process Easy

# 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?









Post #1358365
Posted Thursday, September 13, 2012 1:43 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Tuesday, April 08, 2014 7:20 AM
Points: 100, Visits: 141
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?
Post #1358367
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse