Determine ROW that caused “unexpected end of file” error in BULK INSERT?
To locate the troublesome row use the errorfile specifier. myRubbishData.log will have the offending rows and a companion file myRubbishData.log.txt will give you row numbers and offsets into the file. Companion file example: