SqlBulkCopy Not Working

前端 未结 7 2041
予麋鹿
予麋鹿 2021-02-18 17:54

I have a DataSet populated from Excel Sheet. I wanted to use SQLBulk Copy to Insert Records in Lead_Hdr table where LeadId is PK.

7条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-18 18:23

    What I have found is that the columns in the table and the columns in the input must at least match. You can have more columns in the table and the input will still load. If you have less you'll receive the error.

提交回复
热议问题