Kevin Davidson Guest
|
Posted: Mon Mar 13, 2006 8:03 pm Post subject: Ignoring BULK INSERT errors in Delphi 7 with ADO |
|
|
Here's the bulk insert:
BULK INSERT xxxx FROM xxxx WITH (FIRSTROW=xxxx, FORMATFILE=xxxx, +
ROWS_PER_BATCH=xxxx, MAXERRORS=999999)
I would expect this bulk load to ignore errors and load the rows without
errors. What really happens is that it stops on the first error and
rolls back anything it has done before. If I do the same thing in BCP,
it works ok.
Can ADO be made to tolerate errors?
Kevin
keywords: Delphi 7, ado, bulk insert, fail, maxerrors, ignore errors,
exception, TADOCommand, hair loss |
|