multi-row inserts and updates

  • 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?

  • See http://www.eggheadcafe.com/articles/20030627c.asp for sample code on passing XML to stored procs

    Francis

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply