I am trying to use Python to import Excel workbook data into SQL Server, but under the TERM_DATE
column when I tried to import the values it said it was incompatible with float datatype.
What the column looks like in Excel:
TERM_DATE
43101
43101
43101
43101
43132
What I need the SQL Server column to look like
TERM_DATE
2018-01-01
2018-01-01
2018-01-01
2018-01-01
2018-02-01
Extra info:
TERM_DATE
is a column within the table I created is a date
datatype inside SQL Server; and when I use Python to try to import the TERM_DATE
column from Excel to SQL Server, I get this error:
DataError: ('22018', '[22018] [Microsoft][ODBC SQL Server Driver][SQL Server]Operand type clash: float is incompatible with date (206) (SQLExecDirectW); [22018] [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared. (8180)')