I try to perform bulk insert from csv file.
MY csv file having 7 columns but table contains 8 columns.
i can able to perform bulk insert with below query if my table having 8 columns only.
BULK INSERT Table_Name FROM 'E:\file\input.csv' WITH (ROWTERMINATOR = '0x0A',CODEPAGE = 'ACP',FIELDTERMINATOR = ',',KEEPNULLS, ROWS_PER_BATCH = 10000)
but my csv contains only 7 columns this leads below error..,
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 8 (datecolumn).
Can anyone suggest me way to resolve this without using FormatFile?