Hi,
I am facing an issue with bulk insert from a CSV to database. With try, catch block I cannot see any errors but when I execute without try catch block, it gives following errors.
Msg 4864, Level 16, State 1, Line 1
Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 2, column 10 (InActiveDate).
Msg 7399, Level 16, State 1, Line 1
The OLE DB provider "BULK" for linked server "(null)" reported an error. The provider did not give any information about the error.
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
when I set MAXERRORS = 0, (referring to Bug id 592960) with in try catch block, it catches only the last error which is
Msg 7330, Level 16, State 2, Line 1
Cannot fetch a row from OLE DB provider "BULK" for linked server "(null)".
How do I capture all the 3 errors?
Thanks,
Bhuvana