Reading Comma Delimited Text File to C# DataTable, columns get truncated to 255 characters

后端 未结 6 1843
我寻月下人不归
我寻月下人不归 2021-02-10 21:14

We are importing from CSV to SQL. To do so, we are reading the CSV file and writing to a temporary .txt file using a schema.ini. (I\'m not sure yet exactly why are are writing t

6条回答
  •  抹茶落季
    2021-02-10 21:45

    I was facing a similar issue with my .Net code, and i was able to make it work just by changing the Registry settings to Majortity Type as mentioned in the original post. What i did different in my case is: Since we are trying to import from a CSV and not an Excel. So i had to change the settings for Text in the Registry (Not Excel).

    Try doing it and i think it should work

提交回复
热议问题