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

后端 未结 5 678
南方客
南方客 2021-02-10 21:11

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

5条回答
  •  清酒与你
    2021-02-10 21:50

    You can correct this by correctly specifying your schema.ini file. I believe the two options are to either set the column to a Memo type, or to set the Width > 255.

提交回复
热议问题