SqlBulkCopy cannot access table

前端 未结 10 1061
渐次进展
渐次进展 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:39

    Check that user that connects to db has

    GRANT ALTER ON [dbo].[TABLE_XXX] TO [appuser] 
    

    as suggested in answer by Jhilden on MSDN forum.

提交回复
热议问题