SqlBulkCopy - The given value of type String from the data source cannot be converted to type money of the specified target column

后端 未结 8 1912
慢半拍i
慢半拍i 2020-11-30 03:08

I\'m getting this exception when trying to do an SqlBulkCopy from a DataTable.

Error Message: The given value of type String from the data source cannot be c         


        
8条回答
  •  感动是毒
    2020-11-30 03:17

    Check The data you are writing to Server. May be data has delimiter which is not used.

    like

    045|2272575|0.000|0.000|2013-10-07
    045|2272585|0.000|0.000;2013-10-07
    

    your delimiter is '|' but data has a delimiter ';'. So for this you are getting the error.

提交回复
热议问题