This is my code
public static void InsertToDatabase(DataTable dataTable) {
using (SqlBulkCopy sbc = new SqlBulkCopy(GetConnectionString())){
sbc.DestinationTableName = tableName;
sbc.WriteToServer(dataTable);
}
}
This is the exception:
The given value of type String from the data source cannot be converted to type nchar of the specified target column.
Is there any way to know on which column the exception belongs?