I'm trying to import a table with a date column from excel to MS SQL database using the Server Import and Export Wizard.
The data type of the column in the database is 'datetime'. I've tried formatting the corresponding excel column as 'short date', then as 'text': "19-02-2015" and after that as 'custom date' : "19/02/2015 00:00", but I consistently get the following error message:
Error 0xc020901c: Data Flow Task 1: There was an error with Destination - Share_class_data.Inputs[Destination Input].Columns[Valuation_date] on Destination - Share_class_data.Inputs[Destination Input]. The column status returned was: "The value violated the integrity constraints for the column.". (SQL Server Import and Export Wizard)
Which data type will marry up with a date format from excel?
Or is the only alterantive to change the data type of the column to varchar, import a date column formatted to text and then convert that to a second date column with date data-type?