stefankemp
Board Regular
- Joined
- Mar 11, 2010
- Messages
- 136
Hi, I am trying to query a csv file using ADO. The procedure worked fine in the past, but I have recently received a new csv file that it doesn't want to read from. The only difference I can find between the old and new csv file is that if I open the old file in Notepad, the text just wraps around with no line breaks. So it would look something like this:
Line1Item1;Line1Item2;Line1Item3Line2Item1;Line2Item2;Line2Item3
Whereas the new file looks like this:
Line1Item1;Line1Item2;Line1Item3
Line2Item1;Line2Item2;Line2Item3
As you can see this is semi-colon delimited so I have used a schema.ini file to specify it. I find it strange that it reads the old file fine but not the new one. For the new file it returns a recordset with twice the actual number of records, and all the values are null.
Has anybody come across this behaviour before? Any ideas?
Line1Item1;Line1Item2;Line1Item3Line2Item1;Line2Item2;Line2Item3
Whereas the new file looks like this:
Line1Item1;Line1Item2;Line1Item3
Line2Item1;Line2Item2;Line2Item3
As you can see this is semi-colon delimited so I have used a schema.ini file to specify it. I find it strange that it reads the old file fine but not the new one. For the new file it returns a recordset with twice the actual number of records, and all the values are null.
Has anybody come across this behaviour before? Any ideas?