bulk insert to SQL Server, insert statements vs one insert XML statement?

Posted by Henry on Stack Overflow See other posts from Stack Overflow or by Henry
Published on 2010-05-16T17:32:24Z Indexed on 2010/05/16 17:40 UTC
Read the original article Hit count: 250

The application layer (ColdFusion) needs to insert multiple rows onto SQL Server 2005.

I was thinking of using loop in app layer to construct multiple input statements and send to SQL Server over JDBC in a single connection.

My colleague however suggests to construct an XML and bulk insert the XML instead.

Which one is the better method?

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about sql-server-2005