Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Parsing CSV File Using Microsoft.ACE.OLEDB.12.0

$
0
0

Hi everyone,

I am trying to extract data from a CSV file source in SSIS 2008 R2 using the Microsoft.ACE.OLEDB.12.0 provider.  The problem is that SSIS is not parsing the file correctly. 

Here is my connection string:

Data Source=C:\FolderPath;Provider=Microsoft.ACE.OLEDB.12.0;Extended Properties="Text;HDR=No;FMT=Delimited;"

 

Here is my CSV file:

2011-05-27,1SS,FSS9,FSS28
2011-05-27,1SS,FSS1,FSS9

 

The OLE DB Source component is parsing the CSV file like this:

2011-05-27  1  9  28
2011-05-27  1  1  9

SSIS is choosing the currency data type for the last three fields, therefore ignoring any characters in the field value.  The last three fields should be varchar(50).

Does anyone know how I can correct this issue?  Any help would be appreciated.  Thank you.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>