我有一个excel sheet,它要被复制到DataBase. excelsheet 有一列为DateOfBirth,同样数据库中的表也DateOfBirth列为DateTime。但是现在当我使用SqlBulkCopy它进行复制时会引发异常
The given value of type String from the data source cannot be converted to type datetime of the specified target column.
我通过excel表尝试了各种日期格式,但错误是一样的。