THe error I get is
"The given ColumnMapping does not match up with any column in the source or destination."
In my CSV is only eight columns. The column heading is EXACTLY the same as my database column names.
In my SQL table, I have dozens more columns.
hereis my mapping...
bulkCopy.ColumnMappings.Add("locationID", "locationID")
bulkCopy.ColumnMappings.Add("timestamp", "timestamp")
bulkCopy.ColumnMappings.Add("dateEntered", "dateEntered")
bulkCopy.ColumnMappings.Add("contactType", "contactType")
bulkCopy.ColumnMappings.Add("firstName", "firstName")
bulkCopy.ColumnMappings.Add("country", "country")
bulkCopy.ColumnMappings.Add("emailAddress", "emailAddress")
bulkCopy.ColumnMappings.Add("marketingSourceDetail", "marketingSourceDetail")
Any ideas?