SqlBulkCopy Not Working

前端 未结 7 2077
予麋鹿
予麋鹿 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:32

    Thought a long time about answering... Even if column names are case equally, if the data type differs you get the same error. So check column names and their data type.

    P.S.: staging tables are definitive the way to import.

提交回复
热议问题