Received an invalid column length from the bcp client for colid 6

后端 未结 7 1975
别那么骄傲
别那么骄傲 2020-12-12 18:41

I want to bulk upload csv file data to sql server 2005 from c# code but I am encountering the below error -

Received an invalid column length from th

7条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 19:16

    One of the data columns in the excel (Column Id 6) has one or more cell data that exceed the datacolumn datatype length in the database.

    Verify the data in excel. Also verify the data in the excel for its format to be in compliance with the database table schema.

    To avoid this, try exceeding the data-length of the string datatype in the database table.

    Hope this helps.

提交回复
热议问题