I'm reading a CSV file using OLEDB. All works fine but if any columns in the CSV contain more than 255 characters they get trimmed off. So I can only read max 255 chars from any column.
I'm just reading the data into a temp string before doing something with it. The String . Length is always < 256 and any additional chars are discarded.
No such limit exists when using oledb to read data from a JET database. The limit only applies when OLEDB reads data from a CSV.
How can I make OLEDB read all of the data ?
PS. I'm already using a schema file to specify delimiters etc. but I can't see any parameters for schema file that specify length except those when handling fixed length fields which is not what I want.
PPS. I'm already using textfield parser instead of oledb in next/future release my program so please don't suggest that as a solution. The current version is oledb and I'm looking for solutions using oledb.
Thanks
I'm just reading the data into a temp string before doing something with it. The String . Length is always < 256 and any additional chars are discarded.
No such limit exists when using oledb to read data from a JET database. The limit only applies when OLEDB reads data from a CSV.
How can I make OLEDB read all of the data ?
PS. I'm already using a schema file to specify delimiters etc. but I can't see any parameters for schema file that specify length except those when handling fixed length fields which is not what I want.
PPS. I'm already using textfield parser instead of oledb in next/future release my program so please don't suggest that as a solution. The current version is oledb and I'm looking for solutions using oledb.
Thanks