View Single Post

   
  #4 (permalink)  
Old 02-29-2008, 06:12 AM
Andy O'Neill
 
Posts: n/a
Default Re: Capture Records That Failed Insertion From XML

"Ayron" <akitchen@lrs.com> wrote in message
news:1108507580.773174.268630@l41g2000cwc.googlegr oups.com...
> Does anyone know an effective way to capture any records that failed to
> insert into a table when inserting from an xml document in SQL Svr
> 2000?



I have used sqxmlbulkload.
Not really investigated it in depth but the default behaviour is to crash
and burn if a record contains invalid data.
I wrote an access app which a support user investigates problems with.
They import the xml file to a table and a screen iterates through all fields
comparing values with the datatypes.
It marks records as bad.
The screen shows only bad records and uses conditional highlighting to
highlight the bad field in a record.

--
Regards,
Andy O'Neill


Reply With Quote