How in .Net do I Import Values from a CSV in the format I want using OleDB?

后端 未结 5 1933
悲&欢浪女
悲&欢浪女 2021-01-21 00:11

I have a CSV file that has a column that contains strings that look like integers. That is they should be dealt with as strings, but since they are numbers they appear to be im

5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-21 00:52

    There's a Schema.ini file that needs to be used to specify the info about the file. It includes field types and lengths, whether there are column headers and what the field delimiter is.

    Here's the MSDN Info on it.
    http://msdn.microsoft.com/en-us/library/ms709353.aspx

提交回复
热议问题