I am doing bulk inserts and updates to tables via JDBC.
Currently I sending these in batches of CallableStatements invoking simple insert and update stored procedures.
I am considering an alternative using XML - write a stored procedure that takes an XML document containing the inserted or updated data as a String parameter. The stored proc then uses the OpenXML() method to load the XML document as a virtual table, and then uses set-based operations to insert or update the tables.
I would like to know if anyone used this approach, and how the performance would compare?