SqlBulkCopy cannot access table

前端 未结 10 1057
渐次进展
渐次进展 2021-01-07 22:02

After reading in an excel-sheet (to transferTable), I want to add that data to a new table (destinationTable) using SqlBulkCopy, but I\'m getting the error:

         


        
10条回答
  •  孤城傲影
    2021-01-07 22:47

    Andrij Ferents answer is valid.

    The destination table must exist before calling SQLBulkCopy. It is a common newbie mistake.

提交回复
热议问题