SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


The last row in the sample data is incomplete. The column or row delimiter is missing or the text is...


The last row in the sample data is incomplete. The column or row delimiter is missing or the text is qualified incorrectly.

Author
Message
balaji_kethe
balaji_kethe
SSC-Enthusiastic
SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)

Group: General Forum Members
Points: 156 Visits: 157
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?
balaji_kethe
balaji_kethe
SSC-Enthusiastic
SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)SSC-Enthusiastic (156 reputation)

Group: General Forum Members
Points: 156 Visits: 157
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?
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search